tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: ac1269b5f19bc95ff15373ba9b4998476eba00c4
commit: 8e93f8fadd1f765634c2996ed8d5d1c738a8dd8c [50/52] FROMGIT: soc: qcom: cmd-db: Add
debugfs dumping file
config:
arm64-chromiumos-qualcomm-customedconfig-chrome-os:chromeos-5.4:ac1269b5f19bc95ff15373ba9b4998476eba00c4
(attached as .config)
compiler: aarch64-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 8e93f8fadd1f765634c2996ed8d5d1c738a8dd8c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/soc/qcom/cmd-db.c: In function 'cmd_db_debugfs_dump':
> drivers/soc/qcom/cmd-db.c:281:30: error: field width specifier
'*' expects argument of type 'int', but argument 4 has type 'long
unsigned int' [-Werror=format=]
281 | seq_printf(seq, "0x%08x:
%*pEp", le32_to_cpu(ent->addr),
| ~^~
| |
| int
282 | sizeof(ent->id), ent->id);
| ~~~~~~~~~~~~~~~
| |
| long unsigned int
cc1: all warnings being treated as errors
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@lists.01.org