Re: [PATCH fieldbus v6 6/6] fieldbus_dev: support HMS Profinet IRT industrial controller

From: kbuild test robot
Date: Fri Jan 04 2019 - 16:45:59 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:230:27: warning: incorrect type in initializer (different base types)
drivers/fieldbus/dev_core.c:230:27: expected restricted __poll_t ( *poll )( ... )
drivers/fieldbus/dev_core.c:230:27: got unsigned int ( * )( ... )
--
>> drivers/fieldbus/anybuss/host.c:1350:25: warning: cast to restricted __be16
>> drivers/fieldbus/anybuss/host.c:1350:25: warning: cast to restricted __be16
>> drivers/fieldbus/anybuss/host.c:1350:25: warning: cast to restricted __be16
>> drivers/fieldbus/anybuss/host.c:1350:25: warning: cast to restricted __be16
--
>> drivers/fieldbus/anybuss/arcx-anybus.c:118:30: warning: incorrect type in initializer (different address spaces)
drivers/fieldbus/anybuss/arcx-anybus.c:118:30: expected void [noderef] <asn:2> *base
drivers/fieldbus/anybuss/arcx-anybus.c:118:30: got void *context
drivers/fieldbus/anybuss/arcx-anybus.c:127:30: warning: incorrect type in initializer (different address spaces)
drivers/fieldbus/anybuss/arcx-anybus.c:127:30: expected void [noderef] <asn:2> *base
drivers/fieldbus/anybuss/arcx-anybus.c:127:30: got void *context
>> drivers/fieldbus/anybuss/arcx-anybus.c:157:16: warning: incorrect type in argument 3 (different address spaces)
drivers/fieldbus/anybuss/arcx-anybus.c:157:16: expected void *bus_context
drivers/fieldbus/anybuss/arcx-anybus.c:157:16: got void [noderef] <asn:2> *[assigned] base

vim +230 drivers/fieldbus/dev_core.c

238e0534 Sven Van Asbroeck 2019-01-03 224
238e0534 Sven Van Asbroeck 2019-01-03 225 static const struct file_operations fieldbus_fops = {
238e0534 Sven Van Asbroeck 2019-01-03 226 .open = fieldbus_open,
238e0534 Sven Van Asbroeck 2019-01-03 227 .release = fieldbus_release,
238e0534 Sven Van Asbroeck 2019-01-03 228 .read = fieldbus_read,
238e0534 Sven Van Asbroeck 2019-01-03 229 .write = fieldbus_write,
238e0534 Sven Van Asbroeck 2019-01-03 @230 .poll = fieldbus_poll,
238e0534 Sven Van Asbroeck 2019-01-03 231 .llseek = generic_file_llseek,
238e0534 Sven Van Asbroeck 2019-01-03 232 .owner = THIS_MODULE,
238e0534 Sven Van Asbroeck 2019-01-03 233 };
238e0534 Sven Van Asbroeck 2019-01-03 234

:::::: The code at line 230 was first introduced by commit
:::::: 238e053411976bb767ebc63e01522457d00b073e fieldbus_dev: add Fieldbus Device subsystem.

:::::: TO: Sven Van Asbroeck <thesven73@xxxxxxxxx>
:::::: CC: 0day robot <lkp@xxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip