Skip to contentSkip to conversation

ARC: cleanup dead ARC_CANT_LLSC option in Kconfig

PATCH In review Julian Braha 2 participants 2 messages Aug 16

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

PATCH 1/1 ARC: cleanup dead ARC_CANT_LLSC option in Kconfig

Currently, the ARC_CANT_LLSC config option can never be enabled. It is also not referenced anywhere else. So let's remove this dead code.

Note that I have only compile-tested these changes, because I do not have the hardware to runtime test.

This dead code was found by kconfirm, a static analysis tool for Kconfig.

---
 arch/arc/Kconfig | 4 ----
 1 file changed, 4 deletions(-)
arch/arc/Kconfig +0 -4
index 2ed7186c81c5..80e61175bf52 100644
@@ -331,13 +331,9 @@ config ARC_FPU_SAVE_RESTORE
 	  for floating point exceptions and rounding modes. These are
 	  preserved across task context switch when enabled.
 
-config ARC_CANT_LLSC
-	def_bool n
-
 config ARC_HAS_LLSC
 	bool "Insn: LLOCK/SCOND (efficient atomic ops)"
 	default y
-	depends on !ARC_CANT_LLSC
 
 if ISA_ARCV2
 
Signature · 1 line
2.55.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Julian Braha

Currently, the ARC_CANT_LLSC config option can never be enabled. It is also not referenced anywhere else. So let's remove this dead code.

Note that I have only compile-tested these changes, because I do not have the hardware to runtime test.

This dead code was found by kconfirm, a static analysis tool for Kconfig.

Thx,
-Vineet

Quoted 22 lines
---
  arch/arc/Kconfig | 4 ----
  1 file changed, 4 deletions(-)
arch/arc/Kconfig +0 -4
index 2ed7186c81c5..80e61175bf52 100644
@@ -331,13 +331,9 @@ config ARC_FPU_SAVE_RESTORE
  	  for floating point exceptions and rounding modes. These are
  	  preserved across task context switch when enabled.
 
-config ARC_CANT_LLSC
-	def_bool n
-
  config ARC_HAS_LLSC
  	bool "Insn: LLOCK/SCOND (efficient atomic ops)"
  	default y
-	depends on !ARC_CANT_LLSC
 
  if ISA_ARCV2