[driver-core:bus_type_removal 15/15] drivers/tty/serdev/core.c:265:2: warning: initialization from incompatible pointer type
kbuild test robot
fengguang.wu at intel.com
Tue Jun 6 13:33:56 UTC 2017
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git bus_type_removal
head: 98bcb3d030381f6f32f8952eeac289a63a13f07d
commit: 98bcb3d030381f6f32f8952eeac289a63a13f07d [15/15] driver-core: remove struct bus_type.dev_attrs
config: x86_64-randconfig-i0-201723 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout 98bcb3d030381f6f32f8952eeac289a63a13f07d
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers/tty/serdev/core.c:265:2: error: unknown field 'dev_attrs' specified in initializer
.dev_attrs = serdev_device_attrs,
^
>> drivers/tty/serdev/core.c:265:2: warning: initialization from incompatible pointer type
drivers/tty/serdev/core.c:265:2: warning: (near initialization for 'serdev_bus_type.probe')
vim +265 drivers/tty/serdev/core.c
cd6484e1 Rob Herring 2017-02-02 249 struct device_attribute *attr, char *buf)
cd6484e1 Rob Herring 2017-02-02 250 {
0634c295 Rob Herring 2017-03-22 251 return of_device_modalias(dev, buf, PAGE_SIZE);
cd6484e1 Rob Herring 2017-02-02 252 }
cd6484e1 Rob Herring 2017-02-02 253
cd6484e1 Rob Herring 2017-02-02 254 static struct device_attribute serdev_device_attrs[] = {
cd6484e1 Rob Herring 2017-02-02 255 __ATTR_RO(modalias),
cd6484e1 Rob Herring 2017-02-02 256 __ATTR_NULL
cd6484e1 Rob Herring 2017-02-02 257 };
cd6484e1 Rob Herring 2017-02-02 258
cd6484e1 Rob Herring 2017-02-02 259 static struct bus_type serdev_bus_type = {
cd6484e1 Rob Herring 2017-02-02 260 .name = "serial",
cd6484e1 Rob Herring 2017-02-02 261 .match = serdev_device_match,
cd6484e1 Rob Herring 2017-02-02 262 .probe = serdev_drv_probe,
cd6484e1 Rob Herring 2017-02-02 263 .remove = serdev_drv_remove,
cd6484e1 Rob Herring 2017-02-02 264 .uevent = serdev_uevent,
cd6484e1 Rob Herring 2017-02-02 @265 .dev_attrs = serdev_device_attrs,
cd6484e1 Rob Herring 2017-02-02 266 };
cd6484e1 Rob Herring 2017-02-02 267
cd6484e1 Rob Herring 2017-02-02 268 /**
cd6484e1 Rob Herring 2017-02-02 269 * serdev_controller_alloc() - Allocate a new serdev device
cd6484e1 Rob Herring 2017-02-02 270 * @ctrl: associated controller
cd6484e1 Rob Herring 2017-02-02 271 *
cd6484e1 Rob Herring 2017-02-02 272 * Caller is responsible for either calling serdev_device_add() to add the
cd6484e1 Rob Herring 2017-02-02 273 * newly allocated controller, or calling serdev_device_put() to discard it.
:::::: The code at line 265 was first introduced by commit
:::::: cd6484e1830be260abfba80a9c7d8f65531126d6 serdev: Introduce new bus for serial attached devices
:::::: TO: Rob Herring <robh at kernel.org>
:::::: CC: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 28928 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20170606/2d646733/attachment-0001.bin>
More information about the devel
mailing list