mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] habv4: habv4_get_status(): fix warning with no-op static inline function
@ 2015-05-19 17:37 Marc Kleine-Budde
  2015-05-20  6:11 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Kleine-Budde @ 2015-05-19 17:37 UTC (permalink / raw)
  To: barebox

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@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] habv4: habv4_get_status(): fix warning with no-op static inline function
  2015-05-19 17:37 [PATCH] habv4: habv4_get_status(): fix warning with no-op static inline function Marc Kleine-Budde
@ 2015-05-20  6:11 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-05-20  6:11 UTC (permalink / raw)
  To: Marc Kleine-Budde; +Cc: barebox

On Tue, May 19, 2015 at 07:37:11PM +0200, Marc Kleine-Budde wrote:
> 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@pengutronix.de>
> ---
>  include/habv4.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-20  6:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 17:37 [PATCH] habv4: habv4_get_status(): fix warning with no-op static inline function Marc Kleine-Budde
2015-05-20  6:11 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox