Skip to contentSkip to conversation

net: phy: mdio-gpio.c: fix "no previous prototype" warning

PATCH Applied Antony Pavlov 2 participants 2 messages Mar 24, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: phy: mdio-gpio.c: fix "no previous prototype" warning

The patch fixes this compiler's warning:

drivers/net/phy/mdio-gpio.c:48:24: warning: no previous prototype
for 'mdio_gpio_of_get_info' [-Wmissing-prototypes]
struct mdio_gpio_info *mdio_gpio_of_get_info(struct device_d *dev)

                        ^
---
 drivers/net/phy/mdio-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/mdio-gpio.c +1 -1
index a839f2dee..a846fb28e 100644
@@ -45,7 +45,7 @@ struct mdio_gpio_info {
 	int mdc_active_low, mdio_active_low, mdo_active_low;
 };
 
-struct mdio_gpio_info *mdio_gpio_of_get_info(struct device_d *dev)
+static struct mdio_gpio_info *mdio_gpio_of_get_info(struct device_d *dev)
 {
 	int ret;
 	enum of_gpio_flags flags;
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 11 lines · Antony Pavlov

The patch fixes this compiler's warning:

drivers/net/phy/mdio-gpio.c:48:24: warning: no previous prototype
for 'mdio_gpio_of_get_info' [-Wmissing-prototypes]
struct mdio_gpio_info *mdio_gpio_of_get_info(struct device_d *dev)

                        ^
---
 drivers/net/phy/mdio-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

Quoted 18 lines
drivers/net/phy/mdio-gpio.c +1 -1
index a839f2dee..a846fb28e 100644
@@ -45,7 +45,7 @@ struct mdio_gpio_info {
 	int mdc_active_low, mdio_active_low, mdo_active_low;
 };
 
-struct mdio_gpio_info *mdio_gpio_of_get_info(struct device_d *dev)
+static struct mdio_gpio_info *mdio_gpio_of_get_info(struct device_d *dev)
 {
 	int ret;
 	enum of_gpio_flags flags;
Signature · 1 line
2.11.0
Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox