linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3002:63: sparse: sparse: incorrect type in argument 2 (different address spaces)
@ 2020-07-11 20:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-11 20:49 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3361 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1df0d8960499e58963fd6c8ac75e544f2b417b29
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   3 weeks ago
config: i386-randconfig-s002-20200712 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-37-gc9676a3b-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # 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@intel.com>


sparse warnings: (new ones prefixed by >>)

   drivers/net/wireless/intel/iwlwifi/mvm/..//fw/file.h:330:19: sparse: sparse: mixed bitwiseness
   drivers/net/wireless/intel/iwlwifi/mvm/..//fw/file.h:484:19: sparse: sparse: mixed bitwiseness
>> drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3002:63: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected unsigned char const [usertype] *ies @@     got unsigned char const [noderef] __rcu * @@
   drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3002:63: sparse:     expected unsigned char const [usertype] *ies
>> drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3002:63: sparse:     got unsigned char const [noderef] __rcu *
   drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3003:38: sparse: sparse: dereference of noderef expression
   drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3003:38: sparse: sparse: dereference of noderef expression

vim +3002 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

4f58121dc40a1d Ilan Peer 2019-05-19  2994  
4f58121dc40a1d Ilan Peer 2019-05-19  2995  static void iwl_mvm_check_he_obss_narrow_bw_ru_iter(struct wiphy *wiphy,
4f58121dc40a1d Ilan Peer 2019-05-19  2996  						    struct cfg80211_bss *bss,
4f58121dc40a1d Ilan Peer 2019-05-19  2997  						    void *_data)
4f58121dc40a1d Ilan Peer 2019-05-19  2998  {
4f58121dc40a1d Ilan Peer 2019-05-19  2999  	struct iwl_mvm_he_obss_narrow_bw_ru_data *data = _data;
4f58121dc40a1d Ilan Peer 2019-05-19  3000  	const struct element *elem;
4f58121dc40a1d Ilan Peer 2019-05-19  3001  
4f58121dc40a1d Ilan Peer 2019-05-19 @3002  	elem = cfg80211_find_elem(WLAN_EID_EXT_CAPABILITY, bss->ies->data,
4f58121dc40a1d Ilan Peer 2019-05-19  3003  				  bss->ies->len);
4f58121dc40a1d Ilan Peer 2019-05-19  3004  
4f58121dc40a1d Ilan Peer 2019-05-19  3005  	if (!elem || elem->datalen < 10 ||
4f58121dc40a1d Ilan Peer 2019-05-19  3006  	    !(elem->data[10] &
4f58121dc40a1d Ilan Peer 2019-05-19  3007  	      WLAN_EXT_CAPA10_OBSS_NARROW_BW_RU_TOLERANCE_SUPPORT)) {
4f58121dc40a1d Ilan Peer 2019-05-19  3008  		data->tolerated = false;
4f58121dc40a1d Ilan Peer 2019-05-19  3009  	}
4f58121dc40a1d Ilan Peer 2019-05-19  3010  }
4f58121dc40a1d Ilan Peer 2019-05-19  3011  

:::::: The code at line 3002 was first introduced by commit
:::::: 4f58121dc40a1d5dd2f630a5ec4dac5afa1ce3f4 iwlwifi: mvm: Block 26-tone RU OFDMA transmissions

:::::: TO: Ilan Peer <ilan.peer@intel.com>
:::::: CC: Luca Coelho <luciano.coelho@intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42849 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-11 21:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-11 20:49 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3002:63: sparse: sparse: incorrect type in argument 2 (different address spaces) kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).