arm64: remove redundant FRAME_POINTER kconfig option and force to select it
authorYang Shi <yang.shi@linaro.org>
Mon, 9 Nov 2015 18:09:55 +0000 (10:09 -0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 10 Nov 2015 10:36:00 +0000 (10:36 +0000)
FRAME_POINTER is defined in lib/Kconfig.debug, it is unnecessary to redefine it
in arch/arm64/Kconfig.debug.

ARM64 depends on frame pointer to get correct stack trace (also selecting
ARCH_WANT_FRAME_POINTERS). However, the lib/Kconfig.debug definition allows
such option to be disabled. This patch forces FRAME_POINTER always on on arm64.

Signed-off-by: Yang Shi <yang.shi@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig
arch/arm64/Kconfig.debug

index 4d8a5b256f659f34e8ba994f79edf46852752f8e..40e1151fb7715101744740078048d3a4f305f8bd 100644 (file)
@@ -27,6 +27,7 @@ config ARM64
        select CPU_PM if (SUSPEND || CPU_IDLE)
        select DCACHE_WORD_ACCESS
        select EDAC_SUPPORT
+       select FRAME_POINTER
        select GENERIC_ALLOCATOR
        select GENERIC_CLOCKEVENTS
        select GENERIC_CLOCKEVENTS_BROADCAST
index c24d6adc0420c78bb0efbf747101c87c0be9e81a..04fb73b973f155b477425ff1841e370f0ba87d41 100644 (file)
@@ -2,10 +2,6 @@ menu "Kernel hacking"
 
 source "lib/Kconfig.debug"
 
-config FRAME_POINTER
-       bool
-       default y
-
 config ARM64_PTDUMP
        bool "Export kernel pagetable layout to userspace via debugfs"
        depends on DEBUG_KERNEL