* [PATCH 1/3] w1: fix "no previous prototype for 'w1_found'" warning
2019-01-09 20:24 [PATCH 0/3] drivers: fix "no previous prototype" warnings Antony Pavlov
@ 2019-01-09 20:24 ` Antony Pavlov
2019-01-09 20:24 ` [PATCH 2/3] serial: amba-pl011: fix "no previous prototype for 'pl011_init_port'" warning Antony Pavlov
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Antony Pavlov @ 2019-01-09 20:24 UTC (permalink / raw)
To: barebox
The patch fixes the following compiler's warning:
drivers/w1/w1.c:459:6: warning: no previous prototype for ‘w1_found’ [-Wmissing-prototypes]
void w1_found(struct w1_bus *bus, u64 rn)
^~~~~~~~
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
drivers/w1/w1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index 694ffa853e..f74046c0b7 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -456,7 +456,7 @@ int w1_driver_register(struct w1_driver *drv)
return register_driver(&drv->drv);
}
-void w1_found(struct w1_bus *bus, u64 rn)
+static void w1_found(struct w1_bus *bus, u64 rn)
{
struct w1_device *dev;
u64 tmp = be64_to_cpu(rn);
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/3] serial: amba-pl011: fix "no previous prototype for 'pl011_init_port'" warning
2019-01-09 20:24 [PATCH 0/3] drivers: fix "no previous prototype" warnings Antony Pavlov
2019-01-09 20:24 ` [PATCH 1/3] w1: fix "no previous prototype for 'w1_found'" warning Antony Pavlov
@ 2019-01-09 20:24 ` Antony Pavlov
2019-01-09 20:24 ` [PATCH 3/3] net: ks8851_mll: fix "no previous prototype for 'ks_enable_qmu'" warning Antony Pavlov
2019-01-10 8:33 ` [PATCH 0/3] drivers: fix "no previous prototype" warnings Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Antony Pavlov @ 2019-01-09 20:24 UTC (permalink / raw)
To: barebox
The patch fixes the following compiler's warning:
drivers/serial/amba-pl011.c:151:5: warning: no previous prototype for ‘pl011_init_port’ [-Wmissing-prototypes]
int pl011_init_port (struct console_device *cdev)
^~~~~~~~~~~~~~~
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
drivers/serial/amba-pl011.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c
index ce40f840f7..9b567e3cd2 100644
--- a/drivers/serial/amba-pl011.c
+++ b/drivers/serial/amba-pl011.c
@@ -148,7 +148,7 @@ static void pl011_rlcr(struct amba_uart_port *uart, u32 lcr)
}
}
-int pl011_init_port (struct console_device *cdev)
+static int pl011_init_port(struct console_device *cdev)
{
struct amba_uart_port *uart = to_amba_uart_port(cdev);
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 3/3] net: ks8851_mll: fix "no previous prototype for 'ks_enable_qmu'" warning
2019-01-09 20:24 [PATCH 0/3] drivers: fix "no previous prototype" warnings Antony Pavlov
2019-01-09 20:24 ` [PATCH 1/3] w1: fix "no previous prototype for 'w1_found'" warning Antony Pavlov
2019-01-09 20:24 ` [PATCH 2/3] serial: amba-pl011: fix "no previous prototype for 'pl011_init_port'" warning Antony Pavlov
@ 2019-01-09 20:24 ` Antony Pavlov
2019-01-10 8:33 ` [PATCH 0/3] drivers: fix "no previous prototype" warnings Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Antony Pavlov @ 2019-01-09 20:24 UTC (permalink / raw)
To: barebox
The patch fixes the following compiler's warning:
drivers/net/ks8851_mll.c:438:6: warning: no previous prototype for ‘ks_enable_qmu’ [-Wmissing-prototypes]
void ks_enable_qmu(struct ks_net *ks)
^~~~~~~~~~~~~
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
drivers/net/ks8851_mll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ks8851_mll.c b/drivers/net/ks8851_mll.c
index c0608112d5..b037e19633 100644
--- a/drivers/net/ks8851_mll.c
+++ b/drivers/net/ks8851_mll.c
@@ -435,7 +435,7 @@ static inline void ks_outblk(struct ks_net *ks, u16 *wptr, u32 len)
writew(*wptr++, ks->hw_addr);
}
-void ks_enable_qmu(struct ks_net *ks)
+static void ks_enable_qmu(struct ks_net *ks)
{
u16 w;
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] drivers: fix "no previous prototype" warnings
2019-01-09 20:24 [PATCH 0/3] drivers: fix "no previous prototype" warnings Antony Pavlov
` (2 preceding siblings ...)
2019-01-09 20:24 ` [PATCH 3/3] net: ks8851_mll: fix "no previous prototype for 'ks_enable_qmu'" warning Antony Pavlov
@ 2019-01-10 8:33 ` Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Sascha Hauer @ 2019-01-10 8:33 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
On Wed, Jan 09, 2019 at 11:24:24PM +0300, Antony Pavlov wrote:
> Antony Pavlov (3):
> w1: fix "no previous prototype for 'w1_found'" warning
> serial: amba-pl011: fix "no previous prototype for 'pl011_init_port'" warning
> net: ks8851_mll: fix "no previous prototype for 'ks_enable_qmu'" warning
>
> drivers/net/ks8851_mll.c | 2 +-
> drivers/serial/amba-pl011.c | 2 +-
> drivers/w1/w1.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
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] 5+ messages in thread