UPSTREAM: net: usbnet: Fix -Wcast-function-type
correct usage prototype of callback in tasklet_init(). Report by https://github.com/KSPP/linux/issues/20 Signed-off-by: Phong Tran <tranmanphong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> (cherry picked from commit 2eb1d3f4bcae6c83943214ccb26968a48360db06) Bug: 147506196 Change-Id: Ia9d7fe3e8118c2570ae037645e259082bd813222 Signed-off-by: Alistair Delva <adelva@google.com>
This commit is contained in:
committed by
Alistair Delva
parent
03620385d2
commit
b68f613db7
@@ -1584,6 +1584,13 @@ static void usbnet_bh (struct timer_list *t)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void usbnet_bh_tasklet(unsigned long data)
|
||||||
|
{
|
||||||
|
struct timer_list *t = (struct timer_list *)data;
|
||||||
|
|
||||||
|
usbnet_bh(t);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------
|
/*-------------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
@@ -1711,7 +1718,7 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
|
|||||||
skb_queue_head_init (&dev->txq);
|
skb_queue_head_init (&dev->txq);
|
||||||
skb_queue_head_init (&dev->done);
|
skb_queue_head_init (&dev->done);
|
||||||
skb_queue_head_init(&dev->rxq_pause);
|
skb_queue_head_init(&dev->rxq_pause);
|
||||||
dev->bh.func = (void (*)(unsigned long))usbnet_bh;
|
dev->bh.func = usbnet_bh_tasklet;
|
||||||
dev->bh.data = (unsigned long)&dev->delay;
|
dev->bh.data = (unsigned long)&dev->delay;
|
||||||
INIT_WORK (&dev->kevent, usbnet_deferred_kevent);
|
INIT_WORK (&dev->kevent, usbnet_deferred_kevent);
|
||||||
init_usb_anchor(&dev->deferred);
|
init_usb_anchor(&dev->deferred);
|
||||||
|
|||||||
Reference in New Issue
Block a user