Commit 14c59dcd authored by David S. Miller's avatar David S. Miller

Merge branch 'net-func-cast'

Phong Tran says:

====================
Fix -Wcast-function-type usb net drivers

Change log with v1:
 - Modify suffix of patch subject.
 - Did the checkpatch.pl (remove the space, add a blank line).
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 82f31ebf 2eb1d3f4
...@@ -1214,8 +1214,9 @@ static void hso_std_serial_read_bulk_callback(struct urb *urb) ...@@ -1214,8 +1214,9 @@ static void hso_std_serial_read_bulk_callback(struct urb *urb)
* This needs to be a tasklet otherwise we will * This needs to be a tasklet otherwise we will
* end up recursively calling this function. * end up recursively calling this function.
*/ */
static void hso_unthrottle_tasklet(struct hso_serial *serial) static void hso_unthrottle_tasklet(unsigned long data)
{ {
struct hso_serial *serial = (struct hso_serial *)data;
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&serial->serial_lock, flags); spin_lock_irqsave(&serial->serial_lock, flags);
...@@ -1265,7 +1266,7 @@ static int hso_serial_open(struct tty_struct *tty, struct file *filp) ...@@ -1265,7 +1266,7 @@ static int hso_serial_open(struct tty_struct *tty, struct file *filp)
/* Force default termio settings */ /* Force default termio settings */
_hso_serial_set_termios(tty, NULL); _hso_serial_set_termios(tty, NULL);
tasklet_init(&serial->unthrottle_tasklet, tasklet_init(&serial->unthrottle_tasklet,
(void (*)(unsigned long))hso_unthrottle_tasklet, hso_unthrottle_tasklet,
(unsigned long)serial); (unsigned long)serial);
result = hso_start_serial_device(serial->parent, GFP_KERNEL); result = hso_start_serial_device(serial->parent, GFP_KERNEL);
if (result) { if (result) {
......
...@@ -1573,6 +1573,13 @@ static void usbnet_bh (struct timer_list *t) ...@@ -1573,6 +1573,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);
}
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
* *
...@@ -1700,7 +1707,7 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod) ...@@ -1700,7 +1707,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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment