From: kernel test robot <lkp@intel.com>
To: Robin Murphy <robin.murphy@arm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Will Deacon <will@kernel.org>,
Ilkka Koskinen <ilkka@os.amperecomputing.com>
Subject: [arm-perf:for-next/perf 4/11] drivers/perf/arm-cmn.c:2149:51: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int')
Date: Wed, 25 Mar 2026 12:16:31 +0800 [thread overview]
Message-ID: <202603251248.s3JOjeN0-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git for-next/perf
head: 2f89b7f78c50ca973ca035ceb30426f78d9e0996
commit: 5394396ff5488f007248727988b722c5d4f0638b [4/11] perf/arm-cmn: Stop claiming entire iomem region
config: i386-buildonly-randconfig-003-20260325 (https://download.01.org/0day-ci/archive/20260325/202603251248.s3JOjeN0-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260325/202603251248.s3JOjeN0-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/202603251248.s3JOjeN0-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/perf/arm-cmn.c:2149:51: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int') [-Wformat]
2149 | "Failed to request DTC region 0x%llx\n", base);
| ~~~~ ^~~~
| %x
1 warning generated.
vim +2149 drivers/perf/arm-cmn.c
2131
2132 static int arm_cmn_init_dtc(struct arm_cmn *cmn, struct arm_cmn_node *dn, int idx)
2133 {
2134 struct arm_cmn_dtc *dtc = cmn->dtc + idx;
2135 const struct resource *cfg;
2136 resource_size_t base, size;
2137
2138 dtc->pmu_base = dn->pmu_base;
2139 dtc->base = dtc->pmu_base - arm_cmn_pmu_offset(cmn, dn);
2140 dtc->irq = platform_get_irq(to_platform_device(cmn->dev), idx);
2141 if (dtc->irq < 0)
2142 return dtc->irq;
2143
2144 cfg = platform_get_resource(to_platform_device(cmn->dev), IORESOURCE_MEM, 0);
2145 base = dtc->base - cmn->base + cfg->start;
2146 size = cmn->part == PART_CMN600 ? SZ_16K : SZ_64K;
2147 if (!devm_request_mem_region(cmn->dev, base, size, dev_name(cmn->dev)))
2148 return dev_err_probe(cmn->dev, -EBUSY,
> 2149 "Failed to request DTC region 0x%llx\n", base);
2150
2151 writel_relaxed(CMN_DT_DTC_CTL_DT_EN, dtc->base + CMN_DT_DTC_CTL);
2152 writel_relaxed(CMN_DT_PMCR_PMU_EN | CMN_DT_PMCR_OVFL_INTR_EN, CMN_DT_PMCR(dtc));
2153 writeq_relaxed(0, CMN_DT_PMCCNTR(dtc));
2154 writel_relaxed(0x1ff, CMN_DT_PMOVSR_CLR(dtc));
2155
2156 return 0;
2157 }
2158
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-25 4:16 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=202603251248.s3JOjeN0-lkp@intel.com \
--to=lkp@intel.com \
--cc=ilkka@os.amperecomputing.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robin.murphy@arm.com \
--cc=will@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox