mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 13:43:55 +08:00
net: hso: 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>
This commit is contained in:
parent
82f31ebf61
commit
1d4a09dadb
@ -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)
|
|||||||
/* 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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user