diff mbox series

wireless: zd1211rw: fix build warning

Message ID 20200831043425.281538-1-allen.lkml@gmail.com (mailing list archive)
State Accepted
Commit 5d4650ae8ba66695ab8cdc32ca7e8d0d9c8f2099
Delegated to: Kalle Valo
Headers show
Series wireless: zd1211rw: fix build warning | expand

Commit Message

Allen Aug. 31, 2020, 4:34 a.m. UTC
Tasklet conversion patches intoruced a build warning
in init_usb_rx(), this patch fixes the same.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
---
 drivers/net/wireless/zydas/zd1211rw/zd_usb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Kalle Valo Aug. 31, 2020, 2:04 p.m. UTC | #1
Allen Pais <allen.lkml@gmail.com> writes:

>  Tasklet conversion patches intoruced a build warning
> in init_usb_rx(), this patch fixes the same.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Allen Pais <allen.lkml@gmail.com>

I'll change the title to:

zd1211rw: fix build warning

And add:

Fixes: 26721b02466e ("zd1211rw: convert tasklets to use new tasklet_setup() API")
Kalle Valo Sept. 1, 2020, 8:59 a.m. UTC | #2
Allen Pais <allen.lkml@gmail.com> wrote:

> Tasklet conversion patches intoruced a build warning
> in init_usb_rx(), this patch fixes the same.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Fixes: 26721b02466e ("zd1211rw: convert tasklets to use new tasklet_setup() API")
> Signed-off-by: Allen Pais <allen.lkml@gmail.com>

Patch applied to wireless-drivers-next.git, thanks.

5d4650ae8ba6 zd1211rw: fix build warning
diff mbox series

Patch

diff --git a/drivers/net/wireless/zydas/zd1211rw/zd_usb.c b/drivers/net/wireless/zydas/zd1211rw/zd_usb.c
index 8b3d248ba..71ec3d423 100644
--- a/drivers/net/wireless/zydas/zd1211rw/zd_usb.c
+++ b/drivers/net/wireless/zydas/zd1211rw/zd_usb.c
@@ -1178,8 +1178,9 @@  static inline void init_usb_rx(struct zd_usb *usb)
 	}
 	ZD_ASSERT(rx->fragment_length == 0);
 	INIT_DELAYED_WORK(&rx->idle_work, zd_rx_idle_timer_handler);
-	rx->reset_timer_tasklet.func = (void (*)(unsigned long))
+	rx->reset_timer_tasklet.func = (void (*))
 					zd_usb_reset_rx_idle_timer_tasklet;
+	rx->reset_timer_tasklet.data = (unsigned long)&rx->reset_timer_tasklet;
 }
 
 static inline void init_usb_tx(struct zd_usb *usb)