Hi Fugang,
FYI, the error/warning still remains.
tree:
https://github.com/Freescale/linux-fslc pr/299
head: 79b60a57071319539fefa7d1bdba7e1613b94eef
commit: 688b67b2c7220b01521ffe560da7eee33042c7bd [9167/17408] MLK-23806-01 net: wireless:
nxp: mxm_wifiex: add initial MxM wifi driver
config: um-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/Freescale/linux-fslc/commit/688b67b2c7220b01521ffe560d...
git remote add freescale-fslc
https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/299
git checkout 688b67b2c7220b01521ffe560da7eee33042c7bd
# save the attached .config to linux build tree
make W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
cc1: warning: /mlan: No such file or directory [-Wmissing-include-dirs]
In file included from include/linux/kernel.h:11,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:37,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
include/asm-generic/fixmap.h: In function 'fix_to_virt':
include/asm-generic/fixmap.h:32:19: warning: comparison of unsigned expression >= 0
is always true [-Wtype-limits]
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~
include/linux/compiler.h:330:9: note: in definition of macro
'__compiletime_assert'
330 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro
'_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/asm-generic/fixmap.h:32:2: note: in expansion of macro 'BUILD_BUG_ON'
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~~~~~~~~~~~
In file included from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/ptrace.h:7,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:53,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
arch/um/include/asm/uaccess.h: In function '__access_ok':
arch/um/include/asm/uaccess.h:17:29: warning: comparison of unsigned expression >= 0
is always true [-Wtype-limits]
17 | (((unsigned long) (addr) >= FIXADDR_USER_START) && \
| ^~
arch/um/include/asm/uaccess.h:45:3: note: in expansion of macro
'__access_ok_vsyscall'
45 | __access_ok_vsyscall(addr, size) ||
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/mlan.h:34,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:116,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/mlan_ioctl.h: At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/mlan_ioctl.h:1941:1: note: offset
of packed bit-field 'MaxAMSDU' has changed in GCC 4.4
1941 | } MLAN_PACK_END ExtCap_t, *pExtCap_t;
| ^
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: In function
'woal_get_mode':
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:988:6: warning:
variable 'ret' set but not used [-Wunused-but-set-variable]
988 | int ret = 0;
| ^~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:2160:1: warning: no
previous prototype for 'woal_request_init_user_conf_callback'
[-Wmissing-prototypes]
2160 | woal_request_init_user_conf_callback(const struct firmware *firmware,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:2654:1: warning: no
previous prototype for 'woal_add_card_dpc' [-Wmissing-prototypes]
2654 | woal_add_card_dpc(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:3342:1: warning: no
previous prototype for 'woal_fill_mlan_buffer' [-Wmissing-prototypes]
3342 | woal_fill_mlan_buffer(moal_private *priv,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:4267:1: warning: no
previous prototype for 'woal_flush_evt_queue' [-Wmissing-prototypes]
4267 | woal_flush_evt_queue(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:4821:1: warning: no
previous prototype for 'woal_ioctl_timeout' [-Wmissing-prototypes]
4821 | woal_ioctl_timeout(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5125:1: warning: no
previous prototype for 'woal_tcp_ack_timer_func' [-Wmissing-prototypes]
5125 | woal_tcp_ack_timer_func(void *context)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5194:1: warning: no
previous prototype for 'woal_send_tcp_ack' [-Wmissing-prototypes]
5194 | woal_send_tcp_ack(moal_private *priv, struct tcp_sess *tcp_session)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5251:1: warning: no
previous prototype for 'woal_process_tcp_ack' [-Wmissing-prototypes]
5251 | woal_process_tcp_ack(moal_private *priv, mlan_buffer *pmbuf)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:7990:1: warning: no
previous prototype for 'woal_netdev_poll_rx' [-Wmissing-prototypes]
7990 | woal_netdev_poll_rx(struct napi_struct *napi, int budget)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:8865:1: warning: no
previous prototype for 'woal_pre_reset' [-Wmissing-prototypes]
8865 | woal_pre_reset(moal_handle *handle)
| ^~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:8884:1: warning: no
previous prototype for 'woal_post_reset' [-Wmissing-prototypes]
8884 | woal_post_reset(moal_handle *handle)
| ^~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: In function
'mfg_mode_setup':
>
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:9342:3: error:
'mfg_mode' undeclared (first use in this function)
9342 | mfg_mode =
1;
| ^~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:9342:3: note: each
undeclared identifier is reported only once for each function it appears in
In file included from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:130,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_priv.h:282:34: warning:
'woal_private_args' defined but not used [-Wunused-const-variable=]
282 | static const struct iw_priv_args woal_private_args[] = {
| ^~~~~~~~~~~~~~~~~
--
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from include/linux/kernel.h:11,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:37,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
include/asm-generic/fixmap.h: In function 'fix_to_virt':
include/asm-generic/fixmap.h:32:19: warning: comparison of unsigned expression >= 0
is always true [-Wtype-limits]
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~
include/linux/compiler.h:330:9: note: in definition of macro
'__compiletime_assert'
330 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro
'_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/asm-generic/fixmap.h:32:2: note: in expansion of macro 'BUILD_BUG_ON'
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~~~~~~~~~~~
In file included from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/ptrace.h:7,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:53,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
arch/um/include/asm/uaccess.h: In function '__access_ok':
arch/um/include/asm/uaccess.h:17:29: warning: comparison of unsigned expression >= 0
is always true [-Wtype-limits]
17 | (((unsigned long) (addr) >= FIXADDR_USER_START) && \
| ^~
arch/um/include/asm/uaccess.h:45:3: note: in expansion of macro
'__access_ok_vsyscall'
45 | __access_ok_vsyscall(addr, size) ||
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/mlan.h:34,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:116,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/mlan_ioctl.h: At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/mlan_ioctl.h:1941:1: note: offset
of packed bit-field 'MaxAMSDU' has changed in GCC 4.4
1941 | } MLAN_PACK_END ExtCap_t, *pExtCap_t;
| ^
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: In function
'woal_get_mode':
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:988:6: warning:
variable 'ret' set but not used [-Wunused-but-set-variable]
988 | int ret = 0;
| ^~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:2160:1: warning: no
previous prototype for 'woal_request_init_user_conf_callback'
[-Wmissing-prototypes]
2160 | woal_request_init_user_conf_callback(const struct firmware *firmware,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:2654:1: warning: no
previous prototype for 'woal_add_card_dpc' [-Wmissing-prototypes]
2654 | woal_add_card_dpc(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:3342:1: warning: no
previous prototype for 'woal_fill_mlan_buffer' [-Wmissing-prototypes]
3342 | woal_fill_mlan_buffer(moal_private *priv,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:4267:1: warning: no
previous prototype for 'woal_flush_evt_queue' [-Wmissing-prototypes]
4267 | woal_flush_evt_queue(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:4821:1: warning: no
previous prototype for 'woal_ioctl_timeout' [-Wmissing-prototypes]
4821 | woal_ioctl_timeout(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5125:1: warning: no
previous prototype for 'woal_tcp_ack_timer_func' [-Wmissing-prototypes]
5125 | woal_tcp_ack_timer_func(void *context)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5194:1: warning: no
previous prototype for 'woal_send_tcp_ack' [-Wmissing-prototypes]
5194 | woal_send_tcp_ack(moal_private *priv, struct tcp_sess *tcp_session)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5251:1: warning: no
previous prototype for 'woal_process_tcp_ack' [-Wmissing-prototypes]
5251 | woal_process_tcp_ack(moal_private *priv, mlan_buffer *pmbuf)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:7990:1: warning: no
previous prototype for 'woal_netdev_poll_rx' [-Wmissing-prototypes]
7990 | woal_netdev_poll_rx(struct napi_struct *napi, int budget)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:8865:1: warning: no
previous prototype for 'woal_pre_reset' [-Wmissing-prototypes]
8865 | woal_pre_reset(moal_handle *handle)
| ^~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:8884:1: warning: no
previous prototype for 'woal_post_reset' [-Wmissing-prototypes]
8884 | woal_post_reset(moal_handle *handle)
| ^~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: In function
'mfg_mode_setup':
>
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:9342:3: error:
'mfg_mode' undeclared (first use in this function)
9342 | mfg_mode =
1;
| ^~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:9342:3: note: each
undeclared identifier is reported only once for each function it appears in
In file included from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:130,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_priv.h:282:34: warning:
'woal_private_args' defined but not used [-Wunused-const-variable=]
282 | static const struct iw_priv_args woal_private_args[] = {
| ^~~~~~~~~~~~~~~~~
vim +/mfg_mode +9342 drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c
9327
9328 #ifndef MODULE
9329 #ifdef MFG_CMD_SUPPORT
9330 /**
9331 * @brief This function handle the mfg_mode from kernel boot command
9332 *
9333 * @param str buffer for mfg_mode
9334 * @return N/A
9335 */
9336 static int __init
9337 mfg_mode_setup(char *str)
9338 {
9339 int val = -1;
9340 get_option(&str, &val);
9341 if (val > 0)
9342 mfg_mode = 1;
9343 PRINTM(MMSG,
"mfg_mode=%d\n", mfg_mode);
9344 return 1;
9345 }
9346
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org