[U-Boot] [PATCH 1/4] mx6: soc: Include <asm/bootm.h> header file

Stefano Babic sbabic at denx.de
Mon Oct 2 14:14:37 UTC 2017


On 27/09/2017 18:12, Diego Dorta wrote:
> When compiling with W=1 the following warning is observed:
> 
> arch/arm/mach-imx/mx6/soc.c:213:12: warning: no previous prototype for ‘get_board_rev’ [-Wmissing-prototypes] u32 __weak get_board_rev(void)
> 
> Fix the build warning by including <asm/bootm.h>.
> 
> Signed-off-by: Diego Dorta <diego.dorta at nxp.com>
> ---
>  arch/arm/mach-imx/mx6/soc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c
> index b724668..ad72c12 100644
> --- a/arch/arm/mach-imx/mx6/soc.c
> +++ b/arch/arm/mach-imx/mx6/soc.c
> @@ -13,6 +13,7 @@
>  #include <asm/arch/imx-regs.h>
>  #include <asm/arch/clock.h>
>  #include <asm/arch/sys_proto.h>
> +#include <asm/bootm.h>
>  #include <asm/mach-imx/boot_mode.h>
>  #include <asm/mach-imx/dma.h>
>  #include <asm/mach-imx/hab.h>
> 

Applied to u-boot-imx, -master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list