]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: sys_proto: Add a prototype for board_mmc_get_env_dev()
authorDiego Dorta <diego.dorta@nxp.com>
Thu, 21 Sep 2017 18:10:03 +0000 (15:10 -0300)
committerStefano Babic <sbabic@denx.de>
Thu, 12 Oct 2017 15:31:16 +0000 (17:31 +0200)
When compiling with W=1 the following warning is observed:

board/freescale/mx6sabresd/mx6sabresd.c:266:5: warning:
no previous prototype for ‘board_mmc_get_env_dev’
[-Wmissing-prototypes] int board_mmc_get_env_dev(int devno)

Remove this warning by adding the function prototype into sys_proto.h file.

Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
arch/arm/include/asm/mach-imx/sys_proto.h

index 970c4ca76028bdf3e0c731cde2a8663719d2c0b0..703634334f163fdd363af3a9076c2aa4610c049a 100644 (file)
@@ -107,6 +107,8 @@ void init_aips(void);
 void init_src(void);
 void imx_set_wdog_powerdown(bool enable);
 
+int board_mmc_get_env_dev(int devno);
+
 /*
  * Initializes on-chip ethernet controllers.
  * to override, implement board_eth_init()