[PATCH] net: usb: asix: fix 'no previous prototype' warning

Sascha Hauer s.hauer at pengutronix.de
Sun Nov 22 23:37:23 PST 2015


On Sun, Nov 22, 2015 at 10:49:52PM +0300, Antony Pavlov wrote:
> Here is the warning message:
> 
>     drivers/net/usb/asix.c:427:5: warning: no previous prototype for 'asix_rx_fixup_internal' [-Wmissing-prototypes]
>      int asix_rx_fixup_internal(struct usbnet *dev, void *buf, int len,
>          ^
> 
> Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
> ---
>  drivers/net/usb/asix.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c
> index ff80398..3ca27ff 100644
> --- a/drivers/net/usb/asix.c
> +++ b/drivers/net/usb/asix.c
> @@ -424,7 +424,7 @@ static int ax88172_get_ethaddr(struct eth_device *edev, unsigned char *adr)
>  	return 0;
>  }
>  
> -int asix_rx_fixup_internal(struct usbnet *dev, void *buf, int len,
> +static int asix_rx_fixup_internal(struct usbnet *dev, void *buf, int len,
>  			   struct asix_rx_fixup_info *rx)
>  {
>  	int offset = 0;
> -- 
> 2.6.2
> 
> 

-- 
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