cdc-ether: usbnet_cdc_zte_status() can be static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 12 Jan 2017 13:43:47 +0000 (13:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jan 2017 16:09:18 +0000 (11:09 -0500)
Fixes the following sparse warning:

drivers/net/usb/cdc_ether.c:469:6: warning:
 symbol 'usbnet_cdc_zte_status' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ether.c

index fe7b2886cb6b8fea8935c739d7d50999ed414fcb..620ba8e530b58d612f9de4447124dc5ae630ed82 100644 (file)
@@ -466,7 +466,7 @@ static int usbnet_cdc_zte_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
  * connected. This causes the link state to be incorrect. Work around this by
  * always setting the state to off, then on.
  */
-void usbnet_cdc_zte_status(struct usbnet *dev, struct urb *urb)
+static void usbnet_cdc_zte_status(struct usbnet *dev, struct urb *urb)
 {
        struct usb_cdc_notification *event;