Skip to contentSkip to conversation

x86: Correct usage of IS_ENABLED() macro in arch/x86/lib/spl.c

PATCH In review Tom Rini 1 participant 2 messages Feb 26, 2025 – May 9, 2025 x86

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 x86: Correct usage of IS_ENABLED() macro in arch/x86/lib/spl.c

This file was using IS_ENABLED() to test for CONFIG flags but omitted the CONFIG_ prefix and so did not work as expected.

---
Cc: Simon Glass <[email protected]>
Cc: Bin Meng <[email protected]>

---
 arch/x86/lib/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/lib/spl.c +1 -1
index 7a0335051012..61432f043004 100644
@@ -82,7 +82,7 @@ static int x86_spl_init(void)
 	int ret;
 
 	log_debug("x86 spl starting\n");
-	if (IS_ENABLED(TPL))
+	if (IS_ENABLED(CONFIG_TPL))
 		ret = x86_cpu_reinit_f();
 	else
 		ret = x86_cpu_init_f();
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 4 lines · Tom Rini

This file was using IS_ENABLED() to test for CONFIG flags but omitted the CONFIG_ prefix and so did not work as expected.

Applied to u-boot/master, thanks!

[1/1] x86: Correct usage of IS_ENABLED() macro in arch/x86/lib/spl.c

      commit: cd2dc5f448df29b88668a1e1d97971f2007399eb
Signature · 1 line
Tom