[U-Boot] [PATCH] common: Add a prototype for s_init()

Diego Dorta diego.dorta at nxp.com
Thu Oct 5 12:13:38 UTC 2017


When compiling with W=1 the following warning is observed:

arch/arm/mach-imx/mx6/soc.c:590:6: warning: no previous prototype for ‘s_init’ [-Wmissing-prototypes] void s_init(void)

Remove this warning by adding the function prototype into include/common.h file.

Signed-off-by: Diego Dorta <diego.dorta at nxp.com>
---
 include/common.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/common.h b/include/common.h
index aaed131..32b5378 100644
--- a/include/common.h
+++ b/include/common.h
@@ -529,6 +529,8 @@ int	is_core_valid (unsigned int);
  */
 int arch_cpu_init(void);
 
+void s_init(void);
+
 int	checkcpu      (void);
 int	checkicache   (void);
 int	checkdcache   (void);
-- 
2.7.4



More information about the U-Boot mailing list