All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android13-5.10 0/1] net/ncsi/ncsi-manage.c:726:33: sparse: sparse: cast to restricted __be32
@ 2026-08-14 18:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-14 18:23 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

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/202608150242.f83aO5Hf-lkp@intel.com/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/202608150242.f83aO5Hf-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608150242.f83aO5Hf-lkp@intel.com/

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 <vijaykhemka@fb.com>
:::::: CC: David S. Miller <davem@davemloft.net>

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

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

only message in thread, other threads:[~2026-08-14 18:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-14 18:23 [android-common:android13-5.10 0/1] net/ncsi/ncsi-manage.c:726:33: sparse: sparse: cast to restricted __be32 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.