[android-common:android13-5.10 0/1] net/ncsi/ncsi-manage.c:726:33: sparse: sparse: cast to restricted __be32

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://android.googlesource.com/kernel/common android13-5.10
head:   38d7d173c4d30d37dceca1892b2891a4e385335f
commit: 7329bc66b4a03e63d8c191eeb7c342a1c13f96fa [0/1] net/ncsi: Simplify Kconfig/dts control flow
config: i386-randconfig-062-20260814 (https://download.01.org/0day-ci/archive/20260815/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260815/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
>> net/ncsi/ncsi-manage.c:726:33: sparse: sparse: cast to restricted __be32
>> net/ncsi/ncsi-manage.c:726:33: sparse: sparse: cast to restricted __be32
>> net/ncsi/ncsi-manage.c:726:33: sparse: sparse: cast to restricted __be32
>> net/ncsi/ncsi-manage.c:726:33: sparse: sparse: cast to restricted __be32
>> net/ncsi/ncsi-manage.c:726:33: sparse: sparse: cast to restricted __be32
>> net/ncsi/ncsi-manage.c:726:33: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:750:25: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:750:25: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:750:25: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:750:25: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:750:25: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:750:25: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:773:25: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:773:25: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:773:25: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:773:25: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:773:25: sparse: sparse: cast to restricted __be32
   net/ncsi/ncsi-manage.c:773:25: sparse: sparse: cast to restricted __be32

vim +726 net/ncsi/ncsi-manage.c

f40cac4e708365 Ivan Mikhaylov 2021-07-08  716  
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  717  /* NCSI OEM Command APIs */
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  718  static int ncsi_oem_gma_handler_bcm(struct ncsi_cmd_arg *nca)
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  719  {
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  720  	unsigned char data[NCSI_OEM_BCM_CMD_GMA_LEN];
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  721  	int ret = 0;
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  722  
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  723  	nca->payload = NCSI_OEM_BCM_CMD_GMA_LEN;
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  724  
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  725  	memset(data, 0, NCSI_OEM_BCM_CMD_GMA_LEN);
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16 @726  	*(unsigned int *)data = ntohl(NCSI_OEM_MFR_BCM_ID);
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  727  	data[5] = NCSI_OEM_BCM_CMD_GMA;
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  728  
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  729  	nca->data = data;
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  730  
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  731  	ret = ncsi_xmit_cmd(nca);
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  732  	if (ret)
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  733  		netdev_err(nca->ndp->ndev.dev,
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  734  			   "NCSI: Failed to transmit cmd 0x%x during configure\n",
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  735  			   nca->type);
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  736  	return ret;
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  737  }
cb10c7c0dfd9e6 Vijay Khemka   2018-10-16  738  

:::::: The code at line 726 was first introduced by commit
:::::: cb10c7c0dfd9e6fd3d69ced98b05cbd198c48cf6 net/ncsi: Add NCSI Broadcom OEM command

:::::: TO: Vijay Khemka <[email protected]>
:::::: CC: David S. Miller <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.