tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-next head: 4fe99816a1ab0323c39949bd0ee99a97b7e5875f commit: 71d1e5d71cec76e927a92354a7eb9d476e7054ad [27/39] arm: ecard: use dev_groups and not dev_attrs for bus_type config: arm-rpc_defconfig (attached as .config) compiler: arm-linux-gnueabi-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 71d1e5d71cec76e927a92354a7eb9d476e7054ad # save the attached .config to linux build tree make.cross ARCH=arm All error/warnings (new ones prefixed by >>): In file included from include/linux/kobject.h:21:0, from include/linux/module.h:17, from arch/arm/mach-rpc/ecard.c:30: >> arch/arm/mach-rpc/ecard.c:792:23: error: 'resource_show_show' undeclared here (not in a function) static DEVICE_ATTR_RO(resource_show) ^ include/linux/sysfs.h:116:10: note: in definition of macro '__ATTR_RO' .show = _name##_show, \ ^~~~~ >> arch/arm/mach-rpc/ecard.c:792:8: note: in expansion of macro 'DEVICE_ATTR_RO' static DEVICE_ATTR_RO(resource_show) ^~~~~~~~~~~~~~ >> arch/arm/mach-rpc/ecard.c:794:1: error: expected ',' or ';' before 'static' static ssize_t vendor_show(struct device *dev, struct device_attribute *attr, char *buf) ^~~~~~ In file included from include/linux/kobject.h:21:0, from include/linux/module.h:17, from arch/arm/mach-rpc/ecard.c:30: >> arch/arm/mach-rpc/ecard.c:799:23: error: 'vendor_show' undeclared here (not in a function) static DEVICE_ATTR_RO(vendor); ^ include/linux/sysfs.h:116:10: note: in definition of macro '__ATTR_RO' .show = _name##_show, \ ^~~~~ arch/arm/mach-rpc/ecard.c:799:8: note: in expansion of macro 'DEVICE_ATTR_RO' static DEVICE_ATTR_RO(vendor); ^~~~~~~~~~~~~~ >> arch/arm/mach-rpc/ecard.c:819:3: error: 'dev_attr_resource' undeclared here (not in a function) &dev_attr_resource.attr, ^~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-rpc/ecard.c:42:0: include/linux/device.h:584:26: warning: 'dev_attr_resource_show' defined but not used [-Wunused-variable] struct device_attribute dev_attr_##_name = __ATTR_RO(_name) ^ >> arch/arm/mach-rpc/ecard.c:792:8: note: in expansion of macro 'DEVICE_ATTR_RO' static DEVICE_ATTR_RO(resource_show) ^~~~~~~~~~~~~~ arch/arm/mach-rpc/ecard.c:778:16: warning: 'resource_show' defined but not used [-Wunused-function] static ssize_t resource_show(struct device *dev, struct device_attribute *attr, char *buf) ^~~~~~~~~~~~~ vim +/resource_show_show +792 arch/arm/mach-rpc/ecard.c 786 ec->resource[i].start, 787 ec->resource[i].end, 788 ec->resource[i].flags); 789 790 return str - buf; 791 } > 792 static DEVICE_ATTR_RO(resource_show) 793 > 794 static ssize_t vendor_show(struct device *dev, struct device_attribute *attr, char *buf) 795 { 796 struct expansion_card *ec = ECARD_DEV(dev); 797 return sprintf(buf, "%u\n", ec->cid.manufacturer); 798 } > 799 static DEVICE_ATTR_RO(vendor); 800 801 static ssize_t device_show(struct device *dev, struct device_attribute *attr, char *buf) 802 { 803 struct expansion_card *ec = ECARD_DEV(dev); 804 return sprintf(buf, "%u\n", ec->cid.product); 805 } 806 static DEVICE_ATTR_RO(device); 807 808 static ssize_t type_show(struct device *dev, struct device_attribute *attr, char *buf) 809 { 810 struct expansion_card *ec = ECARD_DEV(dev); 811 return sprintf(buf, "%s\n", ec->easi ? "EASI" : "IOC"); 812 } 813 static DEVICE_ATTR_RO(type); 814 815 static struct attribute *ecard_dev_attrs[] = { 816 &dev_attr_device.attr, 817 &dev_attr_dma.attr, 818 &dev_attr_irq.attr, > 819 &dev_attr_resource.attr, 820 &dev_attr_type.attr, 821 &dev_attr_vendor.attr, 822 NULL, --- 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