Skip to contentSkip to conversation

sparc: select FRAME_POINTER instead of redefining it

PATCH Applied Masahiro Yamada 3 participants 3 messages Feb 15, 2024 – Feb 16, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 arch/sparc/Kconfig.debug | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
arch/sparc/Kconfig.debug +2 -5
index 37e003665de6..d475a056a2e0 100644
@@ -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
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Masahiro Yamada

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.

Thanks.

Quoted 23 lines

---

 arch/sparc/Kconfig.debug | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
arch/sparc/Kconfig.debug +2 -5
index 37e003665de6..d475a056a2e0 100644
@@ -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
Signature · 1 line
#Randy
maintainer Applied
#2 lore raw
In reply to Masahiro Yamada
Quoted 7 lines · Masahiro Yamada

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.

Applied to my for-next branch.

Thanks,
Andreas