Avoid linker error for randomly generated config file that has CONFIG_BRANCH_PROFILE_NONE enabled and make it similar to riscv, x86 and also to commit 4bf3ec384edf ("s390: disable branch profiling for vdso").
Unified · Split
| @@ -26,6 +26,7 @@ KBUILD_CFLAGS += -Wno-pointer-sign -Wno-sign-compare · 25 unmodified lines | ||
| 26 | 26 | KBUILD_CFLAGS += -fno-zero-initialized-in-bss -fno-builtin -ffreestanding |
| 27 | 27 | KBUILD_CFLAGS += -Os -m64 -msoft-float -fno-common |
| 28 | 28 | KBUILD_CFLAGS += -fno-stack-protector |
| 29 | +KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING | |
| 29 | 30 | KBUILD_CFLAGS += $(CLANG_FLAGS) |
| 30 | 31 | KBUILD_CFLAGS += $(call cc-option,-fno-PIE) |
| 31 | 32 | KBUILD_AFLAGS := $(filter-out -DCC_USING_EXPOLINE,$(KBUILD_AFLAGS)) |