net: phy: mdio-gpio.c: fix "no previous prototype" warning
Subsystems (2)
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)
^
Signed-off-by Antony Pavlov <[email protected]>
--- drivers/net/phy/mdio-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/mdio-gpio.c +1 -1
@@ -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
Sascha Hauer
AppliedQuoted 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]
structmdio_gpio_info*mdio_gpio_of_get_info(structdevice_d*dev)^Signed-off-by Antony Pavlov <[email protected]>--- 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@@ -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