Skip to contentSkip to conversation

hexagon: select FRAME_POINTER instead of redefining it

PATCH In review Masahiro Yamada 3 participants 3 messages Feb 15, 2024

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

PATCH 1/1 hexagon: 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 HEXAGON. ARCH_WANT_FRAME_POINTERS must also be selected to avoid the unmet dependency warning.

---

 arch/hexagon/Kconfig | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/hexagon/Kconfig +2 -3
index a880ee067d2e..e922026fef09 100644
@@ -7,7 +7,9 @@ config HEXAGON
 	select ARCH_32BIT_OFF_T
 	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
 	select ARCH_NO_PREEMPT
+	select ARCH_WANT_FRAME_POINTERS
 	select DMA_GLOBAL_POOL
+	select FRAME_POINTER
 	# Other pending projects/to-do items.
 	# select HAVE_REGS_AND_STACK_ACCESS_API
 	# select HAVE_HW_BREAKPOINT if PERF_EVENTS
@@ -43,9 +45,6 @@ config HEXAGON_PHYS_OFFSET
 	help
 	  Platforms that don't load the kernel at zero set this.
 
-config FRAME_POINTER
-	def_bool y
-
 config LOCKDEP_SUPPORT
 	def_bool y
 
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 HEXAGON. ARCH_WANT_FRAME_POINTERS must also be selected to avoid the unmet dependency warning.

Thanks.

Quoted 29 lines

---

 arch/hexagon/Kconfig | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/hexagon/Kconfig +2 -3
index a880ee067d2e..e922026fef09 100644
@@ -7,7 +7,9 @@ config HEXAGON
 	select ARCH_32BIT_OFF_T
 	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
 	select ARCH_NO_PREEMPT
+	select ARCH_WANT_FRAME_POINTERS
 	select DMA_GLOBAL_POOL
+	select FRAME_POINTER
 	# Other pending projects/to-do items.
 	# select HAVE_REGS_AND_STACK_ACCESS_API
 	# select HAVE_HW_BREAKPOINT if PERF_EVENTS
@@ -43,9 +45,6 @@ config HEXAGON_PHYS_OFFSET
 	help
 	  Platforms that don't load the kernel at zero set this.
 
-config FRAME_POINTER
-	def_bool y
-
 config LOCKDEP_SUPPORT
 	def_bool y
 
Signature · 1 line
#Randy
Acked-by on v1 1/1
#2 lore raw
In reply to Masahiro Yamada
Quoted 52 lines

-----Original Message-----
From: Masahiro Yamada <[email protected]>
Sent: Thursday, February 15, 2024 8:07 AM
To: [email protected]
Cc: Masahiro Yamada <[email protected]>; Brian Cain <[email protected]>; [email protected]; linux- [email protected]
Subject: [PATCH] hexagon: select FRAME_POINTER instead of redefining it

WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.

Because FRAME_POINTER is defined in lib/Kconfig.debug, the arch Kconfig should select it.

Add 'select FRAME_POINTER' to HEXAGON. ARCH_WANT_FRAME_POINTERS must
also be selected to avoid the unmet dependency warning.

---

 arch/hexagon/Kconfig | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/hexagon/Kconfig +2 -4
index a880ee067d2e..e922026fef09 100644
@@ -7,7 +7,9 @@ config HEXAGON
        select ARCH_32BIT_OFF_T
        select ARCH_HAS_SYNC_DMA_FOR_DEVICE
        select ARCH_NO_PREEMPT
+       select ARCH_WANT_FRAME_POINTERS
        select DMA_GLOBAL_POOL
+       select FRAME_POINTER
        # Other pending projects/to-do items.
        # select HAVE_REGS_AND_STACK_ACCESS_API
        # select HAVE_HW_BREAKPOINT if PERF_EVENTS
@@ -43,9 +45,6 @@ config HEXAGON_PHYS_OFFSET
        help
          Platforms that don't load the kernel at zero set this.
 
-config FRAME_POINTER
-       def_bool y
-
 config LOCKDEP_SUPPORT
        def_bool y
 
--
Quoted 1 line

2.40.1