Re: [PATCH 1/3] s390/dasd: Adjust buffer output in dasd_hosts_print()

From: kbuild test robot
Date: Wed May 10 2017 - 18:30:43 EST


Hi Markus,

[auto build test WARNING on s390/features]
[also build test WARNING on v4.11 next-20170510]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/SF-Markus-Elfring/S390-DASD-Fine-tuning-for-some-function-implementations/20170511-022121
base: https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features
config: s390-default_defconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=s390

All warnings (new ones prefixed by >>):

drivers/s390/block/dasd_eckd.c: In function 'dasd_hosts_print':
>> drivers/s390/block/dasd_eckd.c:5311:24: warning: field width specifier '*' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
seq_printf(m, "pgid %*phN\n",
^

vim +5311 drivers/s390/block/dasd_eckd.c

5295 DBF_EVENT_DEVID(DBF_WARNING, device->cdev, "%s",
5296 "Could not allocate access buffer");
5297 return -ENOMEM;
5298 }
5299 rc = dasd_eckd_query_host_access(device, access);
5300 if (rc) {
5301 kfree(access);
5302 return rc;
5303 }
5304
5305 info = (struct dasd_ckd_host_information *)
5306 access->host_access_information;
5307 for (i = 0; i < info->entry_count; i++) {
5308 entry = (struct dasd_ckd_path_group_entry *)
5309 (info->entry + i * info->entry_size);
5310 /* PGID */
> 5311 seq_printf(m, "pgid %*phN\n",
5312 ARRAY_SIZE(entry->pgid), entry->pgid);
5313 /* FLAGS */
5314 seq_printf(m, "status_flags %02x\n", entry->status_flags);
5315 /* SYSPLEX NAME */
5316 memcpy(&sysplex, &entry->sysplex_name, sizeof(sysplex) - 1);
5317 EBCASC(sysplex, sizeof(sysplex));
5318 seq_printf(m, "sysplex_name %8s\n", sysplex);
5319 /* SUPPORTED CYLINDER */

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip