]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: print_ut: Fix potential build error
authorBin Meng <bmeng.cn@gmail.com>
Wed, 17 Feb 2021 09:31:47 +0000 (17:31 +0800)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:26 +0000 (19:23 +1300)
This files uses the macro U_BOOT_CMD which is defined in command.h,
but command.h is conditionally included. Fix it.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/print_ut.c

index a456a449efab784cc4e9e9cb5aee86f78519b822..61ea432e46a38fa1a55a9a5e6f3b846948f6fd35 100644 (file)
@@ -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>