[cris:scmi_telemetry_ng_V8 14/30] drivers/firmware/arm_scmi/telemetry.c:1448:48: sparse: sparse: non size-preserving pointer to integer cast

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/cris/linux.git scmi_telemetry_ng_V8
head:   bc3b27dd68cfc244c1e7717b72f88b2dfcb28d2e
commit: b3af22d84385fa2de874059ed603f6636ed76afb [14/30] firmware: arm_scmi: Add support to parse SHMTIs areas
config: powerpc-randconfig-r132-20260809 (https://download.01.org/0day-ci/archive/20260810/[email protected]/config)
compiler: powerpc-linux-gcc (GCC) 15.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260810/[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 >>)
>> drivers/firmware/arm_scmi/telemetry.c:1448:48: sparse: sparse: non size-preserving pointer to integer cast
   drivers/firmware/arm_scmi/telemetry.c:1541:48: sparse: sparse: non size-preserving pointer to integer cast

vim +1448 drivers/firmware/arm_scmi/telemetry.c

  1429	
  1430	static struct telemetry_block_ts *
  1431	scmi_telemetry_blkts_create(struct telemetry_info *ti,
  1432				    struct payload __iomem *payld)
  1433	{
  1434		struct telemetry_block_ts *bts;
  1435		int ret;
  1436	
  1437		bts = kzalloc_obj(*bts);
  1438		if (!bts)
  1439			return NULL;
  1440	
  1441		ret = scmi_telemetry_line_init(&bts->line, &ti->xa_lines, payld,
  1442					       TDCF_BLK_TS_LINE);
  1443		if (ret) {
  1444			kfree(bts);
  1445			return NULL;
  1446		}
  1447	
> 1448		trace_scmi_tlm_collect(0, (__force u64)payld, 0, "SHMTI_NEW_BLKTS");
  1449	
  1450		return bts;
  1451	}
  1452	

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