aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc
diff options
context:
space:
mode:
authorGravatar Masahiro Yamada <masahiroy@kernel.org> 2024-02-15 22:57:49 +0900
committerGravatar Andreas Larsson <andreas@gaisler.com> 2024-02-16 16:50:26 +0100
commit626db6ee8ee1edac206610db407114aa83b53fd3 (patch)
tree306aef42a621464d8cf905c3eb3913478c4264ea /arch/sparc
parentsparc: vDSO: fix return value of __setup handler (diff)
downloadlinux-626db6ee8ee1edac206610db407114aa83b53fd3.tar.gz
linux-626db6ee8ee1edac206610db407114aa83b53fd3.tar.bz2
linux-626db6ee8ee1edac206610db407114aa83b53fd3.zip
sparc: select FRAME_POINTER instead of redefining it
Because FRAME_POINTER is defined in lib/Kconfig.debug, the arch Kconfig should select it. Add 'select FRAME_POINTER' to MCOUNT. ARCH_WANT_FRAME_POINTERS must also be selected to avoid the unmet dependency warning. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Andreas Larsson <andreas@gaisler.com> Link: https://lore.kernel.org/r/20240215135749.1909812-1-masahiroy@kernel.org
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/Kconfig.debug7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/sparc/Kconfig.debug b/arch/sparc/Kconfig.debug
index 37e003665de6..d475a056a2e0 100644
--- a/arch/sparc/Kconfig.debug
+++ b/arch/sparc/Kconfig.debug
@@ -8,11 +8,8 @@ config MCOUNT
bool
depends on SPARC64
depends on FUNCTION_TRACER
- default y
-
-config FRAME_POINTER
- bool
- depends on MCOUNT
+ select ARCH_WANT_FRAME_POINTERS
+ select FRAME_POINTER
default y
config HAVE_HARDLOCKUP_DETECTOR_SPARC64