Skip to contentSkip to conversation

test: print_ut: Fix potential build error

PATCH New Bin Meng 2 participants 3 messages Feb 17, 2021 – Mar 16, 2021

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 test: print_ut: Fix potential build error

This files uses the macro U_BOOT_CMD which is defined in command.h, but command.h is conditionally included. Fix it.

---

 test/print_ut.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/print_ut.c +1 -1
index a456a44..61ea432 100644
@@ -6,8 +6,8 @@
 #define DEBUG
 
 #include <common.h>
-#if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD)
 #include <command.h>
+#if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD)
 #include <efi_api.h>
 #endif
 #include <display_options.h>
Signature · 1 line
2.7.4
#2 lore raw

PATCH 1/1 test: print_ut: Fix potential build error

Quoted 9 lines · Bin Meng

This files uses the macro U_BOOT_CMD which is defined in command.h, but command.h is conditionally included. Fix it.

---

 test/print_ut.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm/next, thanks!