[PATCH] syscon: fix prototype compile error

Lucas Stach l.stach at pengutronix.de
Thu May 15 08:00:36 PDT 2014


From: Steffen Trumtrar <s.trumtrar at pengutronix.de>

gcc 4.8.3 throws the following error

include/mfd/syscon.h: In function 'syscon_base_lookup_by_pdevname':
include/mfd/syscon.h:22:1: error: parameter name omitted
 static inline void __iomem *syscon_base_lookup_by_pdevname(const char *)

Fix it by adding the name to the function prototype.

Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>
---
 include/mfd/syscon.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/mfd/syscon.h b/include/mfd/syscon.h
index 0eccd5cb5d84..20445202b252 100644
--- a/include/mfd/syscon.h
+++ b/include/mfd/syscon.h
@@ -15,11 +15,11 @@
 #define __MFD_SYSCON_H__
 
 #ifdef CONFIG_MFD_SYSCON
-void __iomem *syscon_base_lookup_by_pdevname(const char *);
+void __iomem *syscon_base_lookup_by_pdevname(const char *s);
 void __iomem *syscon_base_lookup_by_phandle
 	(struct device_node *np, const char *property);
 #else
-static inline void __iomem *syscon_base_lookup_by_pdevname(const char *)
+static inline void __iomem *syscon_base_lookup_by_pdevname(const char *s)
 {
 	return NULL;
 }
-- 
2.0.0.rc0




More information about the barebox mailing list