diff mbox series

test: print_ut: Fix potential build error

Message ID 1613554307-50430-1-git-send-email-bmeng.cn@gmail.com
State Accepted
Delegated to: Simon Glass
Headers show
Series test: print_ut: Fix potential build error | expand

Commit Message

Bin Meng Feb. 17, 2021, 9:31 a.m. UTC
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>
---

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

Comments

Simon Glass Feb. 18, 2021, 4:45 a.m. UTC | #1
kOn Wed, 17 Feb 2021 at 02:31, Bin Meng <bmeng.cn@gmail.com> wrote:
>
> 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>
> ---
>
>  test/print_ut.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Simon Glass March 16, 2021, 5:58 a.m. UTC | #2
kOn Wed, 17 Feb 2021 at 02:31, Bin Meng <bmeng.cn@gmail.com> wrote:
>
> 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>
> ---
>
>  test/print_ut.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm/next, thanks!
diff mbox series

Patch

diff --git a/test/print_ut.c b/test/print_ut.c
index a456a44..61ea432 100644
--- a/test/print_ut.c
+++ b/test/print_ut.c
@@ -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>