Re: [PATCH fieldbus v6 1/6] fieldbus_dev: add Fieldbus Device subsystem.

From: kbuild test robot
Date: Fri Jan 04 2019 - 14:37:53 EST


Hi Sven,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20]
[cannot apply to next-20190103]
[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/Sven-Van-Asbroeck/Add-Fieldbus-subsystem-support-HMS-Profinet-card/20190104-123600
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All warnings (new ones prefixed by >>):

drivers/fieldbus/dev_core.c: In function 'read_area_size_show':
>> drivers/fieldbus/dev_core.c:83:24: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=]
return sprintf(buf, "%d\n", fb->read_area_sz);
~^ ~~~~~~~~~~~~~~~~
%ld
drivers/fieldbus/dev_core.c: In function 'write_area_size_show':
drivers/fieldbus/dev_core.c:92:24: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=]
return sprintf(buf, "%d\n", fb->write_area_sz);
~^ ~~~~~~~~~~~~~~~~~
%ld

vim +83 drivers/fieldbus/dev_core.c

77
78 static ssize_t read_area_size_show(struct device *dev,
79 struct device_attribute *attr, char *buf)
80 {
81 struct fieldbus_dev *fb = dev_get_drvdata(dev);
82
> 83 return sprintf(buf, "%d\n", fb->read_area_sz);
84 }
85 static DEVICE_ATTR_RO(read_area_size);
86

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

Attachment: .config.gz
Description: application/gzip