[PATCH] habv4: habv4_get_status(): fix warning with no-op static inline function

Marc Kleine-Budde mkl at pengutronix.de
Tue May 19 10:37:11 PDT 2015


This patch fixes the following warning:

  CC      arch/arm/boards/foo/board.o
  In file included from arch/arm/boards/foo/board.c:22:0:
  include/habv4.h:24:19: warning: function declaration isn't a prototype [-Wstrict-prototypes]
   static inline int habv4_get_status()
                      ^

Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
 include/habv4.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/habv4.h b/include/habv4.h
index fb6ed99d8207..f9bf74f3b936 100644
--- a/include/habv4.h
+++ b/include/habv4.h
@@ -21,7 +21,7 @@
 #ifdef CONFIG_HABV4
 int habv4_get_status(void);
 #else
-static inline int habv4_get_status()
+static inline int habv4_get_status(void)
 {
 	return -EPERM;
 }
-- 
2.1.4




More information about the barebox mailing list