All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Cristian Marussi <cristian.marussi@arm.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [cris:scmi_telemetry_ng_V16 17/31] drivers/firmware/arm_scmi/telemetry.c:2517:51: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Sun, 22 Nov 2026 04:16:44 +0100	[thread overview]
Message-ID: <20261122040854.LMskIQfL-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/cris/linux.git scmi_telemetry_ng_V16
head:   2583f5d73857467989b273f5a1a2f7bee48debd9
commit: d3c1949548189ec1b05987113bf19c80a7d3d9d0 [17/31] firmware: arm_scmi: Add Telemetry DEs configuration support
config: parisc-randconfig-r2303-20261122 (https://download.01.org/0day-ci/archive/20261122/20261122040854.LMskIQfL-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 10.5.0
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261122/20261122040854.LMskIQfL-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/20261122040854.LMskIQfL-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/firmware/arm_scmi/telemetry.c:2517:51: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct eplg *eplg @@     got struct eplg [noderef] __iomem *[assigned] _eplg @@
   drivers/firmware/arm_scmi/telemetry.c:2517:51: sparse:     expected struct eplg *eplg
   drivers/firmware/arm_scmi/telemetry.c:2517:51: sparse:     got struct eplg [noderef] __iomem *[assigned] _eplg
>> drivers/firmware/arm_scmi/telemetry.c:2816:37: sparse: sparse: Using plain integer as NULL pointer
   drivers/firmware/arm_scmi/telemetry.c:2818:37: sparse: sparse: Using plain integer as NULL pointer
>> drivers/firmware/arm_scmi/telemetry.c:2286:31: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void [noderef] __iomem *limit @@     got struct eplg *eplg @@
   drivers/firmware/arm_scmi/telemetry.c:2286:31: sparse:     expected void [noderef] __iomem *limit
   drivers/firmware/arm_scmi/telemetry.c:2286:31: sparse:     got struct eplg *eplg

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

  2499	
  2500	static struct payload __iomem *
  2501	scmi_telemetry_blkts_payld_locate(struct device *dev,
  2502					  struct telemetry_shmti *shmti, u32 *bts_offs,
  2503					  struct payload __iomem *payld, u32 de_id)
  2504	{
  2505		struct payload __iomem *bts_payld = NULL;
  2506	
  2507		if (!bts_offs)
  2508			return IOMEM_ERR_PTR(-EINVAL);
  2509	
  2510		if (*bts_offs &&
  2511		    check_add_overflow((__force unsigned long)shmti->base, *bts_offs,
  2512				       (__force unsigned long *)&bts_payld))
  2513			return IOMEM_ERR_PTR(-EPROTO);
  2514	
  2515		/* Check SHMTI overflow on returned offset */
  2516		if (bts_payld) {
> 2517			if (scmi_telemetry_shmti_overflow(SHMTI_EPLG(shmti), bts_payld)) {
  2518				trace_scmi_tlm_access(de_id, "SHMTI_OVERFLOW", 0, 0);
  2519				return IOMEM_ERR_PTR(-EINVAL);
  2520			}
  2521		} else {
  2522			dev_warn_once(dev, "Received BLK_TS with zero offset.\n");
  2523			trace_scmi_tlm_access(de_id, "BLKTS_WITH_ZERO_OFFSET", 0, 0);
  2524	
  2525			/*
  2526			 * Find the BLK_TS immediately preceding this DE payld by
  2527			 * scanning.
  2528			 */
  2529			bts_payld = scmi_telemetry_nearest_line_by_type(shmti, payld,
  2530									TDCF_BLK_TS_LINE);
  2531			if (WARN_ON(!bts_payld))
  2532				return IOMEM_ERR_PTR(-EPROTO);
  2533	
  2534			/* Calculate offset of found blkts */
  2535			*bts_offs = (void __iomem *)bts_payld - shmti->base;
  2536		}
  2537	
  2538		return bts_payld;
  2539	}
  2540	

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

                 reply	other threads:[~2026-11-22  3:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261122040854.LMskIQfL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cristian.marussi@arm.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.