From 6c919d2d2531d0791db984dfadad3927ea54b0f3 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Thu, 27 May 2021 18:42:24 +0800 Subject: [PATCH] LFU-154 imx6ul: bee: fix build break MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- arch/arm/mach-imx/mx6/bee.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.17.1