From 53bd8fd892996722b8f980dcfe8c66a574bd3831 Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: Tue, 9 Apr 2024 17:14:51 +0800 Subject: [PATCH] mxm_wifiex: fix L6.9 kernel next tree build errors When building the wifi driver based on L6.9 kernel next tree, will observe the following build errors. These errors are caused by kernel patch 490a79faf95e("net: introduce include/net/rps.h"), which moves RPS related structures and helpers from include/linux/netdevice.h and include/net/sock.h to a new include file. So needs to make corresponding changes in wifi driver to avoid the build break. /mxm_wifiex/wlan_src/mlinux/moal_main.c: In function 'woal_set_rps_map': /mxm_wifiex/wlan_src/mlinux/moal_main.c:3744:43: error: implicit declaration of function 'RPS_MAP_SIZE'; did you mean 'XPS_MAP_SIZE'? [-Werror=implicit-function-declaration] 3744 | map = kzalloc(max_t(unsigned int, RPS_MAP_SIZE(cpumask_weight(mask)), ...... /mxm_wifiex/wlan_src/mlinux/moal_main.c:3773:36: error: 'rps_needed' undeclared (first use in this function) 3773 | static_branch_inc(&rps_needed); Signed-off-by: Sherry Sun --- mxm_wifiex/wlan_src/mlinux/moal_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mxm_wifiex/wlan_src/mlinux/moal_main.c b/mxm_wifiex/wlan_src/mlinux/moal_main.c index 7d49616..b859c7b 100644 --- a/mxm_wifiex/wlan_src/mlinux/moal_main.c +++ b/mxm_wifiex/wlan_src/mlinux/moal_main.c @@ -60,6 +60,9 @@ Change log: #include #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 9, 0) +#include +#endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) #include #endif