Linux 5.17 compat: tasklet_init

This commit is contained in:
Rin Cat (鈴猫)
2022-03-02 20:13:49 -05:00
parent aacd0d5c37
commit 5f6ef2ff4f
5 changed files with 14 additions and 15 deletions

View File

@@ -2954,9 +2954,9 @@ exit:
return annc_cnt;
}
static void mpath_tx_tasklet_hdl(void *priv)
static void mpath_tx_tasklet_hdl(unsigned long data)
{
_adapter *adapter = (_adapter *)priv;
_adapter *adapter = (_adapter *)data;
struct rtw_mesh_info *minfo = &adapter->mesh_info;
struct xmit_frame *xframe;
_list *list, *head;
@@ -3376,10 +3376,9 @@ void rtw_mesh_init_mesh_info(_adapter *adapter)
rtw_mesh_pathtbl_init(adapter);
_rtw_init_queue(&minfo->mpath_tx_queue);
tasklet_init(&minfo->mpath_tx_tasklet
, (void(*)(unsigned long))mpath_tx_tasklet_hdl
, (unsigned long)adapter);
tasklet_init(&minfo->mpath_tx_tasklet,
mpath_tx_tasklet_hdl,
(unsigned long)adapter);
rtw_mrc_init(adapter);
_rtw_init_listhead(&minfo->preq_queue.list);