[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202008121103.YM8Rg8Jh%lkp@intel.com>
Date: Wed, 12 Aug 2020 11:58:05 +0800
From: kernel test robot <lkp@...el.com>
To: Ilan Peer <ilan.peer@...el.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Luca Coelho <luciano.coelho@...el.com>
Subject: drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3223:63: sparse:
expected unsigned char const
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fb893de323e2d39f7a1f6df425703a2edbdf56ea
commit: 4f58121dc40a1d5dd2f630a5ec4dac5afa1ce3f4 iwlwifi: mvm: Block 26-tone RU OFDMA transmissions
date: 11 months ago
config: i386-randconfig-s001-20200812 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-168-g9554805c-dirty
git checkout 4f58121dc40a1d5dd2f630a5ec4dac5afa1ce3f4
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c: note: in included file (through drivers/net/wireless/intel/iwlwifi/mvm/..//fw/img.h, drivers/net/wireless/intel/iwlwifi/mvm/..//iwl-trans.h, ...):
drivers/net/wireless/intel/iwlwifi/mvm/..//fw/file.h:330:19: sparse: sparse: mixed bitwiseness
drivers/net/wireless/intel/iwlwifi/mvm/..//fw/file.h:475:19: sparse: sparse: mixed bitwiseness
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3223:63: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected unsigned char const [usertype] *ies @@ got unsigned char const [noderef] <asn:4> * @@
>> drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3223:63: sparse: expected unsigned char const [usertype] *ies
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3223:63: sparse: got unsigned char const [noderef] <asn:4> *
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c: note: in included file (through include/linux/bitops.h, include/linux/kernel.h):
arch/x86/include/asm/bitops.h:78:37: sparse: sparse: cast truncates bits from constant value (ffffff7f becomes 7f)
arch/x86/include/asm/bitops.h:78:37: sparse: sparse: cast truncates bits from constant value (ffffff7f becomes 7f)
arch/x86/include/asm/bitops.h:78:37: sparse: sparse: cast truncates bits from constant value (ffffff7f becomes 7f)
>> drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3224:38: sparse: sparse: dereference of noderef expression
>> drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3224:38: sparse: sparse: dereference of noderef expression
vim +3223 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
3215
3216 static void iwl_mvm_check_he_obss_narrow_bw_ru_iter(struct wiphy *wiphy,
3217 struct cfg80211_bss *bss,
3218 void *_data)
3219 {
3220 struct iwl_mvm_he_obss_narrow_bw_ru_data *data = _data;
3221 const struct element *elem;
3222
> 3223 elem = cfg80211_find_elem(WLAN_EID_EXT_CAPABILITY, bss->ies->data,
> 3224 bss->ies->len);
3225
3226 if (!elem || elem->datalen < 10 ||
3227 !(elem->data[10] &
3228 WLAN_EXT_CAPA10_OBSS_NARROW_BW_RU_TOLERANCE_SUPPORT)) {
3229 data->tolerated = false;
3230 }
3231 }
3232
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (36310 bytes)
Powered by blists - more mailing lists