[driver-core:bus_type_removal 15/15] drivers/tty/serdev/core.c:265:2: error: unknown field 'dev_attrs' specified in initializer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 98bcb3d030381f6f32f8952eeac289a63a13f07d
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All errors (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:15: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .dev_attrs = serdev_device_attrs,
                  ^~~~~~~~~~~~~~~~~~~
   drivers/tty/serdev/core.c:265:15: note: (near initialization for 'serdev_bus_type.probe')
   cc1: some warnings being treated as errors

vim +/dev_attrs +265 drivers/tty/serdev/core.c

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  /**

:::::: The code at line 265 was first introduced by commit
:::::: cd6484e1830be260abfba80a9c7d8f65531126d6 serdev: Introduce new bus for serial attached devices

:::::: TO: Rob Herring <robh@xxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux