Skip to contentSkip to conversation

env: mmc: Fix test for ENV_IS_EMBEDDED

PATCH In review Tom Rini 1 participant 2 messages Apr 1, 2025 – Apr 10, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 env: mmc: Fix test for ENV_IS_EMBEDDED

The symbol "ENV_IS_EMBEDDED" is an environment internal define and not a real CONFIG symbol. The IS_ENABLED() macro is still valid to use here, so update the check.

---
 env/mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
env/mmc.c +1 -1
index 2ef15fb72e7b..8848371eb4f5 100644
@@ -553,7 +553,7 @@ err:
 
 static int env_mmc_load(void)
 {
-	if (IS_ENABLED(CONFIG_ENV_IS_EMBEDDED))
+	if (IS_ENABLED(ENV_IS_EMBEDDED))
 		return 0;
 	else if (IS_ENABLED(CONFIG_SYS_REDUNDAND_ENVIRONMENT))
 		return env_mmc_load_redundant();
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

The symbol "ENV_IS_EMBEDDED" is an environment internal define and not a real CONFIG symbol. The IS_ENABLED() macro is still valid to use here, so update the check.

Applied to u-boot/master, thanks!

[1/1] env: mmc: Fix test for ENV_IS_EMBEDDED

      commit: 684aea3132031b124d8e54c9aa99a244b81d3a49
Signature · 1 line
Tom