[PATCH] 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.
Signed-off-by: Bin Meng bmeng.cn@gmail.com ---
test/print_ut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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>

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

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!
participants (2)
-
Bin Meng
-
Simon Glass