All of lore.kernel.org
 help / color / mirror / Atom feed
* [asahilinux:bits/080-wifi 8/25] drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4334:42: sparse: sparse: incorrect type in assignment (different base types)
@ 2023-04-26  4:35 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-04-26  4:35 UTC (permalink / raw)
  To: Hector Martin; +Cc: oe-kbuild-all, Linus Walleij

tree:   https://github.com/AsahiLinux/linux bits/080-wifi
head:   8a96dfb06cc870730ecf78195187daec961f3e2c
commit: 289c1cd14c0f6ab6f2998b3548baa8de9a2be42d [8/25] brcmfmac: cfg80211: Add support for PMKID_V3 operations
config: nios2-randconfig-s031-20230423 (https://download.01.org/0day-ci/archive/20230426/202304261254.uzAec9Wc-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 12.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://github.com/AsahiLinux/linux/commit/289c1cd14c0f6ab6f2998b3548baa8de9a2be42d
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux bits/080-wifi
        git checkout 289c1cd14c0f6ab6f2998b3548baa8de9a2be42d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 SHELL=/bin/bash drivers/net/wireless/broadcom/brcm80211/brcmfmac/ drivers/video/fbdev/core/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304261254.uzAec9Wc-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4334:42: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] time_left @@     got unsigned int @@
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4334:42: sparse:     expected restricted __le32 [usertype] time_left
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4334:42: sparse:     got unsigned int

vim +4334 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c

  4312	
  4313	static s32
  4314	brcmf_pmksa_v3_op(struct brcmf_if *ifp, struct cfg80211_pmksa *pmksa,
  4315			  bool alive)
  4316	{
  4317		struct brcmf_pmk_op_v3_le *pmk_op;
  4318		int length = offsetof(struct brcmf_pmk_op_v3_le, pmk);
  4319		int ret;
  4320	
  4321		pmk_op = kzalloc(sizeof(*pmk_op), GFP_KERNEL);
  4322		pmk_op->version = cpu_to_le16(BRCMF_PMKSA_VER_3);
  4323	
  4324		if (!pmksa) {
  4325			/* Flush operation, operate on entire list */
  4326			pmk_op->count = cpu_to_le16(0);
  4327		} else {
  4328			/* Single PMK operation */
  4329			pmk_op->count = cpu_to_le16(1);
  4330			length += sizeof(struct brcmf_pmksa_v3);
  4331			memcpy(pmk_op->pmk[0].bssid, pmksa->bssid, ETH_ALEN);
  4332			memcpy(pmk_op->pmk[0].pmkid, pmksa->pmkid, WLAN_PMKID_LEN);
  4333			pmk_op->pmk[0].pmkid_len = WLAN_PMKID_LEN;
> 4334			pmk_op->pmk[0].time_left = alive ? BRCMF_PMKSA_NO_EXPIRY : 0;
  4335		}
  4336	
  4337		pmk_op->length = cpu_to_le16(length);
  4338	
  4339		ret = brcmf_fil_iovar_data_set(ifp, "pmkid_info", pmk_op, sizeof(*pmk_op));
  4340		kfree(pmk_op);
  4341		return ret;
  4342	}
  4343	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

* [asahilinux:bits/080-wifi 8/25] drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4334:42: sparse: sparse: incorrect type in assignment (different base types)
@ 2023-06-03  9:35 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-06-03  9:35 UTC (permalink / raw)
  To: Hector Martin; +Cc: oe-kbuild-all, Linus Walleij

tree:   https://github.com/AsahiLinux/linux bits/080-wifi
head:   8a96dfb06cc870730ecf78195187daec961f3e2c
commit: 289c1cd14c0f6ab6f2998b3548baa8de9a2be42d [8/25] brcmfmac: cfg80211: Add support for PMKID_V3 operations
config: x86_64-randconfig-s023-20230531 (https://download.01.org/0day-ci/archive/20230603/202306031747.3BgNEqoz-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://github.com/AsahiLinux/linux/commit/289c1cd14c0f6ab6f2998b3548baa8de9a2be42d
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux bits/080-wifi
        git checkout 289c1cd14c0f6ab6f2998b3548baa8de9a2be42d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 olddefconfig
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/wireless/broadcom/brcm80211/brcmfmac/ kernel/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306031747.3BgNEqoz-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4334:42: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] time_left @@     got unsigned int @@
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4334:42: sparse:     expected restricted __le32 [usertype] time_left
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4334:42: sparse:     got unsigned int

vim +4334 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c

  4312	
  4313	static s32
  4314	brcmf_pmksa_v3_op(struct brcmf_if *ifp, struct cfg80211_pmksa *pmksa,
  4315			  bool alive)
  4316	{
  4317		struct brcmf_pmk_op_v3_le *pmk_op;
  4318		int length = offsetof(struct brcmf_pmk_op_v3_le, pmk);
  4319		int ret;
  4320	
  4321		pmk_op = kzalloc(sizeof(*pmk_op), GFP_KERNEL);
  4322		pmk_op->version = cpu_to_le16(BRCMF_PMKSA_VER_3);
  4323	
  4324		if (!pmksa) {
  4325			/* Flush operation, operate on entire list */
  4326			pmk_op->count = cpu_to_le16(0);
  4327		} else {
  4328			/* Single PMK operation */
  4329			pmk_op->count = cpu_to_le16(1);
  4330			length += sizeof(struct brcmf_pmksa_v3);
  4331			memcpy(pmk_op->pmk[0].bssid, pmksa->bssid, ETH_ALEN);
  4332			memcpy(pmk_op->pmk[0].pmkid, pmksa->pmkid, WLAN_PMKID_LEN);
  4333			pmk_op->pmk[0].pmkid_len = WLAN_PMKID_LEN;
> 4334			pmk_op->pmk[0].time_left = alive ? BRCMF_PMKSA_NO_EXPIRY : 0;
  4335		}
  4336	
  4337		pmk_op->length = cpu_to_le16(length);
  4338	
  4339		ret = brcmf_fil_iovar_data_set(ifp, "pmkid_info", pmk_op, sizeof(*pmk_op));
  4340		kfree(pmk_op);
  4341		return ret;
  4342	}
  4343	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

end of thread, other threads:[~2023-06-03  9:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-26  4:35 [asahilinux:bits/080-wifi 8/25] drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4334:42: sparse: sparse: incorrect type in assignment (different base types) kernel test robot
2023-06-03  9:35 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.