tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver_attr head: c50b7be3ac64d5322e8f84f2e78f2f4b518b36ef commit: 17d260decb4203d5be1b2ebdbf093897553bfeaa [10/11] s390: drivers: convert to use DRIVER_ATTR_RO/WO config: s390-default_defconfig (attached as .config) compiler: s390x-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 17d260decb4203d5be1b2ebdbf093897553bfeaa # save the attached .config to linux build tree make.cross ARCH=s390 All errors (new ones prefixed by >>): In file included from include/linux/kobject.h:21:0, from include/linux/module.h:17, from drivers/s390/char/sclp.c:11: >> drivers/s390/char/sclp.c:1104:23: error: 'con_pages_show' undeclared here (not in a function) static DRIVER_ATTR_RO(con_pages); ^ include/linux/sysfs.h:116:10: note: in definition of macro '__ATTR_RO' .show = _name##_show, \ ^~~~~ drivers/s390/char/sclp.c:1104:8: note: in expansion of macro 'DRIVER_ATTR_RO' static DRIVER_ATTR_RO(con_pages); ^~~~~~~~~~~~~~ drivers/s390/char/sclp.c:1099:16: warning: 'console_pages_show' defined but not used [-Wunused-function] static ssize_t console_pages_show(struct device_driver *dev, char *buf) ^~~~~~~~~~~~~~~~~~ vim +/con_pages_show +1104 drivers/s390/char/sclp.c 1098 1099 static ssize_t console_pages_show(struct device_driver *dev, char *buf) 1100 { 1101 return sprintf(buf, "%i\n", sclp_console_pages); 1102 } 1103 > 1104 static DRIVER_ATTR_RO(con_pages); 1105 1106 static ssize_t con_drop_show(struct device_driver *dev, char *buf) 1107 { --- 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