mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 16:25:35 +00:00
mxm_wifiex: fix next-20230804 Linux Factory rebase build errors
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>
This commit is contained in:
parent
bcbbab1f66
commit
297d1ac172
1 changed files with 4 additions and 0 deletions
|
@ -118,6 +118,10 @@ Change log:
|
|||
|
||||
#include <net/ieee80211_radiotap.h>
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0)
|
||||
#include <net/netdev_rx_queue.h>
|
||||
#endif
|
||||
|
||||
#include "mlan.h"
|
||||
#include "moal_shim.h"
|
||||
/* Wireless header */
|
||||
|
|
Loading…
Reference in a new issue