mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] syscon: fix prototype compile error
@ 2014-05-15 15:00 Lucas Stach
  2014-05-16  6:04 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Lucas Stach @ 2014-05-15 15:00 UTC (permalink / raw)
  To: barebox

From: Steffen Trumtrar <s.trumtrar@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@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


_______________________________________________
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] syscon: fix prototype compile error
  2014-05-15 15:00 [PATCH] syscon: fix prototype compile error Lucas Stach
@ 2014-05-16  6:04 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2014-05-16  6:04 UTC (permalink / raw)
  To: Lucas Stach; +Cc: barebox

On Thu, May 15, 2014 at 05:00:36PM +0200, Lucas Stach wrote:
> From: Steffen Trumtrar <s.trumtrar@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@pengutronix.de>

Applied, thanks

Sascha

> ---
>  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
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
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:[~2014-05-16  6:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-15 15:00 [PATCH] syscon: fix prototype compile error Lucas Stach
2014-05-16  6:04 ` Sascha Hauer

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