[driver-core:bus_type_removal 15/15] drivers/tty/serdev/core.c:265:2: warning: initialization from incompatible pointer type

[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: 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@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