* [linux-next:master 1750/2366] drivers/soc/qcom/cmd-db.c:281:30: warning: field width specifier '*' expects argument of type 'int', but argument 4 has type 'long unsigned int'
@ 2020-04-15 11:51 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-15 11:51 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3131 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ac935d22736659be734251247dcc6f444fb98972
commit: d6815c5c43d4f9d18e557d27fd27ae8d9cfd450c [1750/2366] soc: qcom: cmd-db: Add debugfs dumping file
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d6815c5c43d4f9d18e557d27fd27ae8d9cfd450c
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/soc/qcom/cmd-db.c: In function 'cmd_db_debugfs_dump':
>> drivers/soc/qcom/cmd-db.c:281:30: warning: field width specifier '*' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
281 | seq_printf(seq, "0x%08x: %*pEp", le32_to_cpu(ent->addr),
| ~^~
| |
| int
282 | sizeof(ent->id), ent->id);
| ~~~~~~~~~~~~~~~
| |
| long unsigned int
vim +281 drivers/soc/qcom/cmd-db.c
239
240 #ifdef CONFIG_DEBUG_FS
241 static int cmd_db_debugfs_dump(struct seq_file *seq, void *p)
242 {
243 int i, j;
244 const struct rsc_hdr *rsc;
245 const struct entry_header *ent;
246 const char *name;
247 u16 len, version;
248 u8 major, minor;
249
250 seq_puts(seq, "Command DB DUMP\n");
251
252 for (i = 0; i < MAX_SLV_ID; i++) {
253 rsc = &cmd_db_header->header[i];
254 if (!rsc->slv_id)
255 break;
256
257 switch (rsc->slv_id) {
258 case CMD_DB_HW_ARC:
259 name = "ARC";
260 break;
261 case CMD_DB_HW_VRM:
262 name = "VRM";
263 break;
264 case CMD_DB_HW_BCM:
265 name = "BCM";
266 break;
267 default:
268 name = "Unknown";
269 break;
270 }
271
272 version = le16_to_cpu(rsc->version);
273 major = version >> 8;
274 minor = version;
275
276 seq_printf(seq, "Slave %s (v%u.%u)\n", name, major, minor);
277 seq_puts(seq, "-------------------------\n");
278
279 ent = rsc_to_entry_header(rsc);
280 for (j = 0; j < le16_to_cpu(rsc->cnt); j++, ent++) {
> 281 seq_printf(seq, "0x%08x: %*pEp", le32_to_cpu(ent->addr),
282 sizeof(ent->id), ent->id);
283
284 len = le16_to_cpu(ent->len);
285 if (len) {
286 seq_printf(seq, " [%*ph]",
287 len, rsc_offset(rsc, ent));
288 }
289 seq_putc(seq, '\n');
290 }
291 }
292
293 return 0;
294 }
295
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 65964 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-15 11:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 11:51 [linux-next:master 1750/2366] drivers/soc/qcom/cmd-db.c:281:30: warning: field width specifier '*' expects argument of type 'int', but argument 4 has type 'long unsigned int' kbuild 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.