diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | kernel/trace/Makefile | 4 | ||||
-rw-r--r-- | mm/Makefile | 3 |
3 files changed, 1 insertions, 7 deletions
@@ -621,6 +621,7 @@ include arch/$(SRCARCH)/Makefile | |||
621 | 621 | ||
622 | KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) | 622 | KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) |
623 | KBUILD_CFLAGS += $(call cc-disable-warning,maybe-uninitialized,) | 623 | KBUILD_CFLAGS += $(call cc-disable-warning,maybe-uninitialized,) |
624 | KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) | ||
624 | 625 | ||
625 | ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE | 626 | ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE |
626 | KBUILD_CFLAGS += -Os | 627 | KBUILD_CFLAGS += -Os |
diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile index 992ab9d99f35..e57980845549 100644 --- a/kernel/trace/Makefile +++ b/kernel/trace/Makefile | |||
@@ -1,8 +1,4 @@ | |||
1 | 1 | ||
2 | # We are fully aware of the dangers of __builtin_return_address() | ||
3 | FRAME_CFLAGS := $(call cc-disable-warning,frame-address) | ||
4 | KBUILD_CFLAGS += $(FRAME_CFLAGS) | ||
5 | |||
6 | # Do not instrument the tracer itself: | 2 | # Do not instrument the tracer itself: |
7 | 3 | ||
8 | ifdef CONFIG_FUNCTION_TRACER | 4 | ifdef CONFIG_FUNCTION_TRACER |
diff --git a/mm/Makefile b/mm/Makefile index 2ca1faf3fa09..295bd7a9f76b 100644 --- a/mm/Makefile +++ b/mm/Makefile | |||
@@ -21,9 +21,6 @@ KCOV_INSTRUMENT_memcontrol.o := n | |||
21 | KCOV_INSTRUMENT_mmzone.o := n | 21 | KCOV_INSTRUMENT_mmzone.o := n |
22 | KCOV_INSTRUMENT_vmstat.o := n | 22 | KCOV_INSTRUMENT_vmstat.o := n |
23 | 23 | ||
24 | # Since __builtin_frame_address does work as used, disable the warning. | ||
25 | CFLAGS_usercopy.o += $(call cc-disable-warning, frame-address) | ||
26 | |||
27 | mmu-y := nommu.o | 24 | mmu-y := nommu.o |
28 | mmu-$(CONFIG_MMU) := gup.o highmem.o memory.o mincore.o \ | 25 | mmu-$(CONFIG_MMU) := gup.o highmem.o memory.o mincore.o \ |
29 | mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \ | 26 | mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \ |