Skip to contentSkip to conversation

wireless: zd1211rw: fix build warning

PATCH In review Allen Pais 2 participants 3 messages Aug 31, 2020 – Sep 1, 2020 ZD1211RW wireless driver

lore
Share & tools
lore

Allen Pais

author
#0 lore raw

PATCH 1/1 wireless: zd1211rw: fix build warning

Tasklet conversion patches intoruced a build warning
in init_usb_rx(), this patch fixes the same.

---
 drivers/net/wireless/zydas/zd1211rw/zd_usb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/zydas/zd1211rw/zd_usb.c +2 -1
index 8b3d248ba..71ec3d423 100644
@@ -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)
Signature · 1 line
2.25.1
#1 lore raw
Quoted 5 lines · Allen Pais

Tasklet conversion patches intoruced a build warning
in init_usb_rx(), this patch fixes the same.

I'll change the title to:

zd1211rw: fix build warning

And add:

Fixes 26721b02466e ("zd1211rw: convert tasklets to use new tasklet_setup() API")
Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#2 lore raw

Re: zd1211rw: fix build warning

In reply to Allen Pais
Quoted 6 lines · Allen Pais

Tasklet conversion patches intoruced a build warning in init_usb_rx(), this patch fixes the same.

Fixes 26721b02466e ("zd1211rw: convert tasklets to use new tasklet_setup() API")

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

5d4650ae8ba6 zd1211rw: fix build warning

Signature · 3 lines
https://patchwork.kernel.org/patch/11745469/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches