All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3223:63: sparse: expected unsigned char const
@ 2020-08-12  3:58 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-08-12  3:58 UTC (permalink / raw)
  To: Ilan Peer; +Cc: kbuild-all, linux-kernel, Luca Coelho

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

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@intel.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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3223:63: sparse: expected unsigned char const
@ 2020-08-12  3:58 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-08-12  3:58 UTC (permalink / raw)
  To: kbuild-all

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

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@intel.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(a)lists.01.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-12  3:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12  3:58 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3223:63: sparse: expected unsigned char const kernel test robot
2020-08-12  3:58 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.