Message ID | 20200831043659.281712-1-allen.lkml@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 6b8c7574a5f889c8e1fb6ec54b09d8d9d8a9fb37 |
Delegated to: | Kalle Valo |
Headers | show |
Series | wireless: rtlwifi/rtw88: fix build warning | expand |
Allen Pais <allen.lkml@gmail.com> writes: > Tasklet conversion patch introduced a build > warning in _rtl_usb_init_rx, this patch fixes the warning. > > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: Allen Pais <allen.lkml@gmail.com> > --- > drivers/net/wireless/realtek/rtlwifi/usb.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) I'll change the title: rtlwifi: fix build warning And add: Fixes: d3ccc14dfe95 ("rtlwifi/rtw88: convert tasklets to use new tasklet_setup() API")
Allen Pais <allen.lkml@gmail.com> wrote: > Tasklet conversion patch introduced a build > warning in _rtl_usb_init_rx, this patch fixes the warning. > > Reported-by: kernel test robot <lkp@intel.com> > Fixes: d3ccc14dfe95 ("rtlwifi/rtw88: 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. 6b8c7574a5f8 rtlwifi: fix build warning
diff --git a/drivers/net/wireless/realtek/rtlwifi/usb.c b/drivers/net/wireless/realtek/rtlwifi/usb.c index 8740818e8..6aa4bd2f7 100644 --- a/drivers/net/wireless/realtek/rtlwifi/usb.c +++ b/drivers/net/wireless/realtek/rtlwifi/usb.c @@ -310,7 +310,8 @@ static int _rtl_usb_init_rx(struct ieee80211_hw *hw) init_usb_anchor(&rtlusb->rx_cleanup_urbs); skb_queue_head_init(&rtlusb->rx_queue); - rtlusb->rx_work_tasklet.func = (void(*)(unsigned long))_rtl_rx_work; + rtlusb->rx_work_tasklet.func = (void(*))_rtl_rx_work; + rtlusb->rx_work_tasklet.data = (unsigned long)&rtlusb->rx_work_tasklet; return 0; }
Tasklet conversion patch introduced a build warning in _rtl_usb_init_rx, this patch fixes the warning. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Allen Pais <allen.lkml@gmail.com> --- drivers/net/wireless/realtek/rtlwifi/usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)