From: Peng Fan Date: Thu, 27 May 2021 10:42:24 +0000 (+0800) Subject: LFU-154 imx6ul: bee: fix build break X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~62^2 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=6c919d2d2531d0791db984dfadad3927ea54b0f3;p=u-boot.git LFU-154 imx6ul: bee: fix build break Fix below build break by including the global_data.h header file. " CC arch/arm/mach-imx/mx6/bee.o arch/arm/mach-imx/mx6/bee.c:18:1: warning: data definition has no type or storage class 18 | DECLARE_GLOBAL_DATA_PTR; | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm/mach-imx/mx6/bee.c:18:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_GLOBAL_DATA_PTR’ [-Wimplicit-int] arch/arm/mach-imx/mx6/bee.c: In function ‘region_valid’: arch/arm/mach-imx/mx6/bee.c:261:29: error: ‘gd’ undeclared (first use in this function) 261 | if ((start + size - 1) >= (gd->start_addr_sp - SZ_128K)) { | ^~ arch/arm/mach-imx/mx6/bee.c:261:29: note: each undeclared identifier is reported only once for each function it appears in scripts/Makefile.build:265: recipe for target 'arch/arm/mach-imx/mx6/bee.o' failed make[2]: *** [arch/arm/mach-imx/mx6/bee.o] Error 1 " Reviewed-by: Ye Li Signed-off-by: Peng Fan --- diff --git a/arch/arm/mach-imx/mx6/bee.c b/arch/arm/mach-imx/mx6/bee.c index 0c6cc67c6d..a852c5f3a2 100644 --- a/arch/arm/mach-imx/mx6/bee.c +++ b/arch/arm/mach-imx/mx6/bee.c @@ -14,6 +14,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR;