[linux-next:master 3307/5418] drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:3911:28: sparse: sparse: incorrect type in assignment (different base types)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   04fe99a8d936d46a310ca61b8b63dc270962bf01
commit: 7a6cfe28ae3ef6a78774fd1e21e3b76c90937112 [3307/5418] brcmfmac: Configure keep-alive packet on suspend
config: microblaze-randconfig-s031-20211207 (https://download.01.org/0day-ci/archive/20211208/202112080339.rKLd0aDI-lkp@xxxxxxxxx/config)
compiler: microblaze-linux-gcc (GCC) 11.2.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-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7a6cfe28ae3ef6a78774fd1e21e3b76c90937112
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 7a6cfe28ae3ef6a78774fd1e21e3b76c90937112
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=microblaze SHELL=/bin/bash drivers/net/wireless/broadcom/brcm80211/brcmfmac/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>


sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:3911:28: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [assigned] [usertype] period_msec @@     got restricted __le16 [usertype] @@
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:3911:28: sparse:     expected restricted __le32 [assigned] [usertype] period_msec
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:3911:28: sparse:     got restricted __le16 [usertype]
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:3913:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned char [assigned] [usertype] keep_alive_id @@     got restricted __le16 [usertype] @@
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:3913:30: sparse:     expected unsigned char [assigned] [usertype] keep_alive_id
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:3913:30: sparse:     got restricted __le16 [usertype]

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

  3903	
  3904	static int brcmf_keepalive_start(struct brcmf_if *ifp, unsigned int interval)
  3905	{
  3906		struct brcmf_mkeep_alive_pkt_le kalive = {0};
  3907		int ret = 0;
  3908	
  3909		/* Configure Null function/data keepalive */
  3910		kalive.version = cpu_to_le16(1);
> 3911		kalive.period_msec = cpu_to_le16(interval * MSEC_PER_SEC);
  3912		kalive.len_bytes = cpu_to_le16(0);
> 3913		kalive.keep_alive_id = cpu_to_le16(0);
  3914	
  3915		ret = brcmf_fil_iovar_data_set(ifp, "mkeep_alive", &kalive, sizeof(kalive));
  3916		if (ret)
  3917			brcmf_err("keep-alive packet config failed, ret=%d\n", ret);
  3918	
  3919		return ret;
  3920	}
  3921	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux