[driver-core:bus_type_removal 10/16] arch/powerpc/platforms/pseries/vio.c:1579:26: error: conflicting types for 'vio_dev_attrs'

[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:   4fe33425a6308e00d6bbe641e66abd3e78f45c3a
commit: 3b481f66e778743703a6cfea4c4bcdb4bbd138ad [10/16] powerpc: vio: use dev_groups and not dev_attrs for bus_type
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 3b481f66e778743703a6cfea4c4bcdb4bbd138ad
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

>> arch/powerpc/platforms/pseries/vio.c:1579:26: error: conflicting types for 'vio_dev_attrs'
    static struct attribute *vio_dev_attrs[] = {
                             ^~~~~~~~~~~~~
   arch/powerpc/platforms/pseries/vio.c:1573:32: note: previous definition of 'vio_dev_attrs' was here
    static struct device_attribute vio_dev_attrs[] = {
                                   ^~~~~~~~~~~~~
>> arch/powerpc/platforms/pseries/vio.c:1573:32: error: 'vio_dev_attrs' defined but not used [-Werror=unused-variable]
   cc1: all warnings being treated as errors

vim +/vio_dev_attrs +1579 arch/powerpc/platforms/pseries/vio.c

  1567		}
  1568	
  1569		return sprintf(buf, "vio:T%sS%s\n", vio_dev->type, cp);
  1570	}
  1571	static DEVICE_ATTR_RO(modalias);
  1572	
> 1573	static struct device_attribute vio_dev_attrs[] = {
  1574		__ATTR_RO(name),
  1575		__ATTR_RO(devspec),
  1576		__ATTR_RO(modalias),
  1577		__ATTR_NULL
  1578	};
> 1579	static struct attribute *vio_dev_attrs[] = {
  1580		&dev_attr_name.attr,
  1581		&dev_attr_devspec.attr,
  1582		&dev_attr_modalias.attr,

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