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-allmodconfig (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 warnings (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 drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan.h:39,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:30:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_ioctl.h:1946:1: note: offset of
packed bit-field 'MaxAMSDU' has changed in GCC 4.4
1946 | } MLAN_PACK_END ExtCap_t, *pExtCap_t;
| ^
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:66:1: warning: no
previous prototype for 'wlan_show_dot11axmaccap' [-Wmissing-prototypes]
66 | wlan_show_dot11axmaccap(pmlan_adapter pmadapter, t_u32 cap)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:82:1: warning: no
previous prototype for 'wlan_check_ap_11ax_twt_supported' [-Wmissing-prototypes]
82 | wlan_check_ap_11ax_twt_supported(BSSDescriptor_t *pbss_desc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c: In function
'wlan_check_11ax_twt_supported':
>
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:122:58: warning: suggest
braces around empty body in an 'if' statement [-Wempty-body]
122 | if
(phecap->he_mac_cap[0] & HE_MAC_CAP_TWT_REQ_SUPPORT) ;
| ^
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c: At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:136:1: warning: no
previous prototype for 'wlan_show_dot11axphycap' [-Wmissing-prototypes]
136 | wlan_show_dot11axphycap(pmlan_adapter pmadapter, t_u32 support)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c: In function
'wlan_ret_11ax_cmd':
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:719:8: warning: variable
'tlv_type' set but not used [-Wunused-but-set-variable]
719 | t_u16 tlv_type = 0, tlv_len = 0;
| ^~~~~~~~
--
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan.h:39,
from
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:30:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_ioctl.h:1946:1: note: offset of
packed bit-field 'MaxAMSDU' has changed in GCC 4.4
1946 | } MLAN_PACK_END ExtCap_t, *pExtCap_t;
| ^
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:66:1: warning: no
previous prototype for 'wlan_show_dot11axmaccap' [-Wmissing-prototypes]
66 | wlan_show_dot11axmaccap(pmlan_adapter pmadapter, t_u32 cap)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:82:1: warning: no
previous prototype for 'wlan_check_ap_11ax_twt_supported' [-Wmissing-prototypes]
82 | wlan_check_ap_11ax_twt_supported(BSSDescriptor_t *pbss_desc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c: In function
'wlan_check_11ax_twt_supported':
>
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:122:58: warning: suggest
braces around empty body in an 'if' statement [-Wempty-body]
122 | if
(phecap->he_mac_cap[0] & HE_MAC_CAP_TWT_REQ_SUPPORT) ;
| ^
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c: At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:136:1: warning: no
previous prototype for 'wlan_show_dot11axphycap' [-Wmissing-prototypes]
136 | wlan_show_dot11axphycap(pmlan_adapter pmadapter, t_u32 support)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c: In function
'wlan_ret_11ax_cmd':
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c:719:8: warning: variable
'tlv_type' set but not used [-Wunused-but-set-variable]
719 | t_u16 tlv_type = 0, tlv_len = 0;
| ^~~~~~~~
vim +/if +122 drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_11ax.c
94
95 /**
96 * @brief This function check if we should enable TWT support
97 *
98 * @param pbss_desc A pointer to BSSDescriptor_t structure
99 *
100 * @return MTRUE/MFALSE
101 */
102 t_u8
103 wlan_check_11ax_twt_supported(mlan_private *pmpriv, BSSDescriptor_t *pbss_desc)
104 {
105 MrvlIEtypes_He_cap_t *phecap = MNULL;
106 MrvlIEtypes_He_cap_t *hw_he_cap = MNULL;
107
108 if (!wlan_check_ap_11ax_twt_supported(pbss_desc))
109 return MFALSE;
110 if (pbss_desc->bss_band & BAND_A) {
111 hw_he_cap =
112 (MrvlIEtypes_He_cap_t *) & pmpriv->adapter->hw_he_cap;
113 phecap = (MrvlIEtypes_He_cap_t *) & pmpriv->user_he_cap;
114 } else {
115 hw_he_cap =
116 (MrvlIEtypes_He_cap_t *) & pmpriv->adapter->
117 hw_2g_he_cap;
118 phecap = (MrvlIEtypes_He_cap_t *) & pmpriv->user_2g_he_cap;
119 }
120 if (!(hw_he_cap->he_mac_cap[0] & HE_MAC_CAP_TWT_REQ_SUPPORT))
121 return MFALSE;
122 if (phecap->he_mac_cap[0] & HE_MAC_CAP_TWT_REQ_SUPPORT) ;
123 return MTRUE;
124 return MFALSE;
125 }
126
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org