Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b68f613d authored by Phong Tran's avatar Phong Tran Committed by Alistair Delva
Browse files

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: default avatarPhong Tran <tranmanphong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
(cherry picked from commit 2eb1d3f4bcae6c83943214ccb26968a48360db06)
Bug: 147506196
Change-Id: Ia9d7fe3e8118c2570ae037645e259082bd813222
Signed-off-by: default avatarAlistair Delva <adelva@google.com>
parent 03620385
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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->done);
	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;
	INIT_WORK (&dev->kevent, usbnet_deferred_kevent);
	init_usb_anchor(&dev->deferred);