tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git bus_type_removal head: 4fe33425a6308e00d6bbe641e66abd3e78f45c3a commit: 5e6ce1375ec9909a33dd94942e8c85eaa52edf58 [8/16] powerpc: ps3: 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 5e6ce1375ec9909a33dd94942e8c85eaa52edf58 # save the attached .config to linux build tree make.cross ARCH=powerpc All errors (new ones prefixed by >>): In file included from include/linux/kobject.h:21:0, from include/linux/device.h:17, from include/linux/dma-mapping.h:6, from arch/powerpc/platforms/ps3/system-bus.c:24: >> arch/powerpc/platforms/ps3/system-bus.c:480:18: error: 'ps3_system_bus_attrs' undeclared here (not in a function) ATTRIBUTE_GROUPS(ps3_system_bus); ^ include/linux/sysfs.h:148:11: note: in definition of macro 'ATTRIBUTE_GROUPS' .attrs = _name##_attrs, \ ^~~~~ >> arch/powerpc/platforms/ps3/system-bus.c:489:16: error: 'ps3_system_bus_dev_groups' undeclared here (not in a function) .dev_groups = ps3_system_bus_dev_groups, ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/kobject.h:21:0, from include/linux/device.h:17, from include/linux/dma-mapping.h:6, from arch/powerpc/platforms/ps3/system-bus.c:24: >> arch/powerpc/platforms/ps3/system-bus.c:480:18: error: 'ps3_system_bus_groups' defined but not used [-Werror=unused-variable] ATTRIBUTE_GROUPS(ps3_system_bus); ^ include/linux/sysfs.h:141:38: note: in definition of macro '__ATTRIBUTE_GROUPS' static const struct attribute_group *_name##_groups[] = { \ ^~~~~ arch/powerpc/platforms/ps3/system-bus.c:480:1: note: in expansion of macro 'ATTRIBUTE_GROUPS' ATTRIBUTE_GROUPS(ps3_system_bus); ^~~~~~~~~~~~~~~~ >> arch/powerpc/platforms/ps3/system-bus.c:476:26: error: 'ps3_system_bus_dev_attrs' defined but not used [-Werror=unused-variable] static struct attribute *ps3_system_bus_dev_attrs[] = { ^~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/ps3_system_bus_attrs +480 arch/powerpc/platforms/ps3/system-bus.c 470 dev->match_sub_id); 471 472 return (len >= PAGE_SIZE) ? (PAGE_SIZE - 1) : len; 473 } 474 static DEVICE_ATTR_RO(modalias); 475 > 476 static struct attribute *ps3_system_bus_dev_attrs[] = { 477 &dev_attr_modalias.attr, 478 NULL, 479 }; > 480 ATTRIBUTE_GROUPS(ps3_system_bus); 481 482 struct bus_type ps3_system_bus_type = { 483 .name = "ps3_system_bus", 484 .match = ps3_system_bus_match, 485 .uevent = ps3_system_bus_uevent, 486 .probe = ps3_system_bus_probe, 487 .remove = ps3_system_bus_remove, 488 .shutdown = ps3_system_bus_shutdown, > 489 .dev_groups = ps3_system_bus_dev_groups, 490 }; 491 492 static int __init ps3_system_bus_init(void) --- 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