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: xtensa-allmodconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.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 8c103093703b767ff463d04c78569e4abf9fbbc8 # save the attached .config to linux build tree make.cross ARCH=xtensa All warnings (new ones prefixed by >>): >> drivers/mtd/ubi/build.c:116:2: warning: initialization from incompatible pointer type &class_attr_version.attr, ^ drivers/mtd/ubi/build.c:116:2: warning: (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: >> include/linux/sysfs.h:147:21: warning: initialization from incompatible pointer type static const struct attribute_group _name##_group = { \ ^ >> drivers/mtd/ubi/build.c:119:1: note: in expansion of macro 'ATTRIBUTE_GROUPS' ATTRIBUTE_GROUPS(ubi_class); ^ include/linux/sysfs.h:147:21: warning: (near initialization for 'ubi_class_group.attrs') static const struct attribute_group _name##_group = { \ ^ >> drivers/mtd/ubi/build.c:119:1: note: in expansion of macro 'ATTRIBUTE_GROUPS' ATTRIBUTE_GROUPS(ubi_class); ^ -- drivers/mtd//ubi/build.c:116:2: warning: initialization from incompatible pointer type &class_attr_version.attr, ^ drivers/mtd//ubi/build.c:116:2: warning: (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: >> include/linux/sysfs.h:147:21: warning: initialization from incompatible pointer type static const struct attribute_group _name##_group = { \ ^ drivers/mtd//ubi/build.c:119:1: note: in expansion of macro 'ATTRIBUTE_GROUPS' ATTRIBUTE_GROUPS(ubi_class); ^ include/linux/sysfs.h:147:21: warning: (near initialization for 'ubi_class_group.attrs') static const struct attribute_group _name##_group = { \ ^ drivers/mtd//ubi/build.c:119:1: note: in expansion of macro 'ATTRIBUTE_GROUPS' ATTRIBUTE_GROUPS(ubi_class); ^ 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); 120 121 /* Root UBI "class" object (corresponds to '/<sysfs>/class/ubi/') */ 122 struct class 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