mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2024-11-01 05:25:21 +00:00
297d1ac172
When build wifi driver based on next-20230804 Linux code, will observe the following build errors. mlinux/moal_shim.c: In function ‘moal_recv_event’: mlinux/moal_shim.c:3475:25: error: too few arguments to function ‘cfg80211_ch_switch_notify’ mlinux/moal_main.c: In function ‘woal_set_rps_map’: mlinux/moal_main.c:3657:29: error: invalid use of undefined type ‘struct netdev_rx_queue’ 3657 | if (!queue || !queue->dev) { | ^~ In file included from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./arch/arm64/include/asm/compat.h:28, from ./arch/arm64/include/asm/stat.h:13, from ./include/linux/stat.h:6, from ./include/linux/module.h:13, from mlinux/moal_main.h:38, from mlinux/moal_main.c:29: mlinux/moal_main.c:3701:22: error: invalid use of undefined type ‘struct netdev_rx_queue’ 3701 | queue->rps_map, mutex_is_locked(&local_rps_map_mutex)); | ^~ ./include/linux/rcupdate.h:447:19: note: in definition of macro ‘__rcu_dereference_protected’ 447 | ((typeof(*p) __force __kernel *)(p)); \ ...... This is caused by kernel patch 49e47a5b6145("net: move struct netdev_rx_queue out of netdevice.h"), now netdev_rx_queue has been removed to a new header. Note: The patch was introduced in L6.5 kernel next tree, but kernel linus tree hasn't added, so maybe you need to keep this patch until kernel linus tree add this patch and change the kerenl version accordingly. Signed-off-by: Sherry Sun <sherry.sun@nxp.com> |
||
---|---|---|
.. | ||
mlan.h | ||
mlan_decl.h | ||
mlan_ieee.h | ||
mlan_ioctl.h | ||
moal_cfg80211.c | ||
moal_cfg80211.h | ||
moal_cfg80211_util.c | ||
moal_cfg80211_util.h | ||
moal_debug.c | ||
moal_eth_ioctl.c | ||
moal_eth_ioctl.h | ||
moal_init.c | ||
moal_ioctl.c | ||
moal_main.c | ||
moal_main.h | ||
moal_pcie.c | ||
moal_pcie.h | ||
moal_priv.c | ||
moal_priv.h | ||
moal_proc.c | ||
moal_sdio.h | ||
moal_sdio_mmc.c | ||
moal_shim.c | ||
moal_shim.h | ||
moal_sta_cfg80211.c | ||
moal_sta_cfg80211.h | ||
moal_uap.c | ||
moal_uap.h | ||
moal_uap_cfg80211.c | ||
moal_uap_cfg80211.h | ||
moal_uap_priv.c | ||
moal_uap_priv.h | ||
moal_uap_wext.c | ||
moal_usb.c | ||
moal_usb.h | ||
moal_wext.c | ||
moal_wext.h |