[driver-core:class_groups_removal 3/7] drivers/mtd/ubi/build.c:116:2: error: 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 class_groups_removal
head:   0e917470c6fbd8ad8eb957c663aecc25b859c7fb
commit: 8c103093703b767ff463d04c78569e4abf9fbbc8 [3/7] mtd: use class_groups instead of class_attrs
config: x86_64-randconfig-x019-201723 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 8c103093703b767ff463d04c78569e4abf9fbbc8
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> drivers/mtd/ubi/build.c:116:2: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     &class_attr_version.attr,
     ^
   drivers/mtd/ubi/build.c:116:2: note: (near initialization for 'ubi_class_attrs[0]')
   In file included from include/linux/kobject.h:21:0,
                    from include/linux/module.h:17,
                    from drivers/mtd/ubi/build.c:33:
   drivers/mtd/ubi/build.c:119:18: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
    ATTRIBUTE_GROUPS(ubi_class);
                     ^
   include/linux/sysfs.h:148:11: note: in definition of macro 'ATTRIBUTE_GROUPS'
     .attrs = _name##_attrs,     \
              ^~~~~
   drivers/mtd/ubi/build.c:119:18: note: (near initialization for 'ubi_class_group.attrs')
    ATTRIBUTE_GROUPS(ubi_class);
                     ^
   include/linux/sysfs.h:148:11: note: in definition of macro 'ATTRIBUTE_GROUPS'
     .attrs = _name##_attrs,     \
              ^~~~~
   cc1: some warnings being treated as errors

vim +116 drivers/mtd/ubi/build.c

   110	{
   111		return sprintf(buf, "%d\n", UBI_VERSION);
   112	}
   113	static CLASS_ATTR_RO(version);
   114	
   115	static struct attributes *ubi_class_attrs[] = {
 > 116		&class_attr_version.attr,
   117		NULL,
   118	};
   119	ATTRIBUTE_GROUPS(ubi_class);

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