Re: [PATCH 2/2] tools/testing/nvdimm: test get_config_size DSM failures

From: kbuild test robot
Date: Tue Sep 13 2016 - 23:42:39 EST


Hi Dan,

[auto build test WARNING on next-20160913]
[cannot apply to pm/linux-next linus/master linux/master v4.8-rc6 v4.8-rc5 v4.8-rc4 v4.8-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url: https://github.com/0day-ci/linux/commits/Dan-Williams/nfit-fail-DSMs-that-return-non-zero-status-by-default/20160914-093545
config: x86_64-rhel (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All warnings (new ones prefixed by >>):

tools/testing/nvdimm//test/nfit.c: In function 'handle_show':
>> tools/testing/nvdimm//test/nfit.c:609:26: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'u32 {aka unsigned int}' [-Wformat=]
return sprintf(buf, "%#lx", handle[dimm]);
^

vim +609 tools/testing/nvdimm//test/nfit.c

593
594 if (sscanf(dev_name(dev), "test_dimm%d", &dimm) != 1
595 || dimm >= NUM_DCR || dimm < 0)
596 return -ENXIO;
597 return dimm;
598 }
599
600
601 static ssize_t handle_show(struct device *dev, struct device_attribute *attr,
602 char *buf)
603 {
604 int dimm = dimm_name_to_id(dev);
605
606 if (dimm < 0)
607 return dimm;
608
> 609 return sprintf(buf, "%#lx", handle[dimm]);
610 }
611 DEVICE_ATTR_RO(handle);
612
613 static ssize_t fail_cmd_show(struct device *dev, struct device_attribute *attr,
614 char *buf)
615 {
616 int dimm = dimm_name_to_id(dev);
617

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

Attachment: .config.gz
Description: Binary data