Skip to contentSkip to conversation

spl: Correct dependency for SPL_SYS_REPORT_STACK_F_USAGE

PATCH In review Tom Rini 1 participant 2 messages Sep 25, 2025 – Oct 9, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 spl: Correct dependency for SPL_SYS_REPORT_STACK_F_USAGE

In Kconfig syntax, "!=" is a string and not numerical comparison. This means that to check for a non-zero SPL_SIZE_LIMIT_PROVIDE_STACK value we need to test that it is "> 0" rather than "!=" 0. This is because "0x0 > 0" is false while "0x0 != 0" is true.

---
 common/spl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/spl/Kconfig +1 -1
index f34b96efc022..cb7b4179384b 100644
@@ -176,7 +176,7 @@ config SPL_SYS_STACK_F_CHECK_BYTE
 	  Constant used to check the stack
 
 config SPL_SYS_REPORT_STACK_F_USAGE
-	depends on SPL_SIZE_LIMIT_PROVIDE_STACK != 0
+	depends on SPL_SIZE_LIMIT_PROVIDE_STACK > 0
 	bool "Check and report stack usage in SPL before relocation"
 	help
 	  If this option is enabled, the initial SPL stack is filled with 0xaa
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 6 lines · Tom Rini

In Kconfig syntax, "!=" is a string and not numerical comparison. This means that to check for a non-zero SPL_SIZE_LIMIT_PROVIDE_STACK value we need to test that it is "> 0" rather than "!=" 0. This is because "0x0 > 0" is false while "0x0 != 0" is true.

Applied to u-boot/master, thanks!

[1/1] spl: Correct dependency for SPL_SYS_REPORT_STACK_F_USAGE

      commit: 93dbdf389848310afd769a45f7a043e4a19c1b2d
Signature · 1 line
Tom