Skip to contentSkip to conversation

nds32: add a Kconfig symbol for LOCKDEP_SUPPORT

PATCH In review Randy Dunlap 1 participant 2 messages May 17, 2021 – Feb 17, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nds32: add a Kconfig symbol for LOCKDEP_SUPPORT

Each architecture (arch/) should define its own LOCKDEP_SUPPORT Kconfig symbol (if it is needed). arch/nds32/ is the only one that does "select LOCKDEP_SUPPORT", which is basically a no-op since the symbol is not defined. (It might be nice for kconfig to warn about that.)

Add a "config LOCKDEP_SUPPORT" to arch/nds32/Kconfig to correct this issue.

Since the current Kconfig file selects LOCKDEP_SUPPORT unconditionally, use "def_bool y" to set/enable it always.

Cc Nick Hu <[email protected]>
Cc Greentime Hu <[email protected]>
Cc Vincent Chen <[email protected]>
Cc Andrew Morton <[email protected]>
---
 arch/nds32/Kconfig |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/nds32/Kconfig +3 -1
@@ -36,7 +36,6 @@ config NDS32
 	select HAVE_REGS_AND_STACK_ACCESS_API
 	select HAVE_PERF_EVENTS
 	select IRQ_DOMAIN
-	select LOCKDEP_SUPPORT
 	select MODULES_USE_ELF_RELA
 	select OF
 	select OF_EARLY_FLATTREE
@@ -64,6 +63,9 @@ config GENERIC_LOCKBREAK
 	def_bool y
 	depends on PREEMPTION
 
+config LOCKDEP_SUPPORT
+	def_bool y
+
 config TRACE_IRQFLAGS_SUPPORT
 	def_bool y
 
#1 lore raw

Add Alan and KC.

Quoted 32 lines · Randy Dunlap

Each architecture (arch/) should define its own LOCKDEP_SUPPORT Kconfig symbol (if it is needed). arch/nds32/ is the only one that does "select LOCKDEP_SUPPORT", which is basically a no-op since the symbol is not defined. (It might be nice for kconfig to warn about that.)

Add a "config LOCKDEP_SUPPORT" to arch/nds32/Kconfig to correct this issue.

Since the current Kconfig file selects LOCKDEP_SUPPORT unconditionally, use "def_bool y" to set/enable it always.

Cc Nick Hu <[email protected]>
Cc Greentime Hu <[email protected]>
Cc Vincent Chen <[email protected]>
Cc Andrew Morton <[email protected]>
---
 arch/nds32/Kconfig |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/nds32/Kconfig +0 -1
@@ -36,7 +36,6 @@ config NDS32
 	select HAVE_REGS_AND_STACK_ACCESS_API
 	select HAVE_PERF_EVENTS
 	select IRQ_DOMAIN
-	select LOCKDEP_SUPPORT
 	select MODULES_USE_ELF_RELA
 	select OF
 	select OF_EARLY_FLATTREE

arch/nds32/Kconfig config GENERIC_LOCKBREAK · line 71

Quoted 9 lines
arch/nds32/Kconfig +3 -0
@@ -64,6 +63,9 @@ config GENERIC_LOCKBREAK
 	def_bool y
 	depends on PREEMPTION
 
+config LOCKDEP_SUPPORT
+	def_bool y
+
 config TRACE_IRQFLAGS_SUPPORT
 	def_bool y
 

Anybody out there for Andes?

Signature · 1 line
~Randy