[PATCH] phylib: fix compiler warning

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 26 03:07:27 EST 2012


On Sat, Nov 24, 2012 at 08:46:02PM +0400, Antony Pavlov wrote:
> fixes:
>  drivers/net/phy/phy.c:57: warning: no previous prototype for ‘phy_device_create’
> 
> Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>

Applied, thanks

Sascha

> ---
>  drivers/net/phy/phy.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
> index 59df742..ed185e1 100644
> --- a/drivers/net/phy/phy.c
> +++ b/drivers/net/phy/phy.c
> @@ -136,7 +136,7 @@ int phy_scan_fixups(struct phy_device *phydev)
>  	return 0;
>  }
>  
> -struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id)
> +static struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id)
>  {
>  	struct phy_device *dev;
>  
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at 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 |



More information about the barebox mailing list