Hi David, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.12-rc4 next-20170606] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/David-Kershner/move-visorbus-out-of-staging-to-drivers-virt-visorbus/20170606-070850 config: m68k-allyesconfig (attached as .config) compiler: m68k-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 # save the attached .config to linux build tree make.cross ARCH=m68k All errors (new ones prefixed by >>): drivers/virt/visorbus/visorchipset.c: In function 'save_crash_message': >> drivers/virt/visorbus/visorchipset.c:479:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:485:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:495:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:508:37: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:519:37: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:525:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c: In function 'visorbus_create': drivers/virt/visorbus/visorchipset.c:582:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c: In function 'visorbus_configure': drivers/virt/visorbus/visorchipset.c:734:35: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c: In function 'visorbus_device_create': drivers/virt/visorbus/visorchipset.c:755:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:762:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:770:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:796:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c: In function 'visorbus_device_changestate': drivers/virt/visorbus/visorchipset.c:896:35: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, "failed: %d\n", err); ^ drivers/virt/visorbus/visorchipset.c: In function 'parahotplug_request_kickoff': drivers/virt/visorbus/visorchipset.c:1188:53: error: dereferencing pointer to incomplete type return kobject_uevent_env(&chipset_dev->acpi_device->dev.kobj, ^ drivers/virt/visorbus/visorchipset.c: In function 'chipset_ready_uevent': drivers/virt/visorbus/visorchipset.c:1255:48: error: dereferencing pointer to incomplete type res = kobject_uevent(&chipset_dev->acpi_device->dev.kobj, ^ drivers/virt/visorbus/visorchipset.c: In function 'chipset_selftest_uevent': drivers/virt/visorbus/visorchipset.c:1279:52: error: dereferencing pointer to incomplete type res = kobject_uevent_env(&chipset_dev->acpi_device->dev.kobj, ^ drivers/virt/visorbus/visorchipset.c: In function 'chipset_notready_uevent': drivers/virt/visorbus/visorchipset.c:1300:48: error: dereferencing pointer to incomplete type res = kobject_uevent(&chipset_dev->acpi_device->dev.kobj, ^ drivers/virt/visorbus/visorchipset.c: In function 'unisys_vmcall': drivers/virt/visorbus/visorchipset.c:1316:2: warning: right shift count >= width of type reg_ecx = param >> 32; ^ drivers/virt/visorbus/visorchipset.c:1318:2: error: implicit declaration of function 'cpuid' [-Werror=implicit-function-declaration] cpuid(0x00000001, &cpuid_eax, &cpuid_ebx, &cpuid_ecx, &cpuid_edx); ^ drivers/virt/visorbus/visorchipset.c: In function 'setup_crash_devices_work_queue': drivers/virt/visorbus/visorchipset.c:1388:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:1394:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:1404:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:1414:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:1425:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:1432:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c:1440:36: error: dereferencing pointer to incomplete type dev_err(&chipset_dev->acpi_device->dev, ^ drivers/virt/visorbus/visorchipset.c: In function 'visorchipset_init': drivers/virt/visorbus/visorchipset.c:1831:13: error: dereferencing pointer to incomplete type acpi_device->driver_data = chipset_dev; ^ drivers/virt/visorbus/visorchipset.c:1843:53: error: dereferencing pointer to incomplete type err = sysfs_create_groups(&chipset_dev->acpi_device->dev.kobj, ^ drivers/virt/visorbus/visorchipset.c:1875:47: error: dereferencing pointer to incomplete type sysfs_remove_groups(&chipset_dev->acpi_device->dev.kobj, ^ drivers/virt/visorbus/visorchipset.c:1885:22: error: dereferencing pointer to incomplete type dev_err(&acpi_device->dev, "failed with error %d\n", err); ^ drivers/virt/visorbus/visorchipset.c: In function 'visorchipset_exit': drivers/virt/visorbus/visorchipset.c:1894:47: error: dereferencing pointer to incomplete type sysfs_remove_groups(&chipset_dev->acpi_device->dev.kobj, ^ drivers/virt/visorbus/visorchipset.c: At top level: >> drivers/virt/visorbus/visorchipset.c:1903:36: error: array type has incomplete element type static const struct acpi_device_id unisys_device_ids[] = { ^ drivers/virt/visorbus/visorchipset.c:1908:15: error: variable 'unisys_acpi_driver' has initializer but incomplete type static struct acpi_driver unisys_acpi_driver = { ^ drivers/virt/visorbus/visorchipset.c:1909:2: error: unknown field 'name' specified in initializer .name = "unisys_acpi", ^ drivers/virt/visorbus/visorchipset.c:1909:2: warning: excess elements in struct initializer drivers/virt/visorbus/visorchipset.c:1909:2: warning: (near initialization for 'unisys_acpi_driver') drivers/virt/visorbus/visorchipset.c:1910:2: error: unknown field 'class' specified in initializer .class = "unisys_acpi_class", ^ drivers/virt/visorbus/visorchipset.c:1910:2: warning: excess elements in struct initializer drivers/virt/visorbus/visorchipset.c:1910:2: warning: (near initialization for 'unisys_acpi_driver') drivers/virt/visorbus/visorchipset.c:1911:2: error: unknown field 'owner' specified in initializer .owner = THIS_MODULE, ^ In file included from include/linux/linkage.h:6:0, from include/linux/kernel.h:6, from include/linux/list.h:8, from include/linux/resource_ext.h:17, from include/linux/acpi.h:26, from drivers/virt/visorbus/visorchipset.c:17: include/linux/export.h:37:30: warning: excess elements in struct initializer #define THIS_MODULE ((struct module *)0) ^ drivers/virt/visorbus/visorchipset.c:1911:11: note: in expansion of macro 'THIS_MODULE' .owner = THIS_MODULE, ^ include/linux/export.h:37:30: warning: (near initialization for 'unisys_acpi_driver') #define THIS_MODULE ((struct module *)0) ^ drivers/virt/visorbus/visorchipset.c:1911:11: note: in expansion of macro 'THIS_MODULE' .owner = THIS_MODULE, ^ drivers/virt/visorbus/visorchipset.c:1912:2: error: unknown field 'ids' specified in initializer .ids = unisys_device_ids, ^ drivers/virt/visorbus/visorchipset.c:1912:2: warning: excess elements in struct initializer drivers/virt/visorbus/visorchipset.c:1912:2: warning: (near initialization for 'unisys_acpi_driver') drivers/virt/visorbus/visorchipset.c:1913:2: error: unknown field 'ops' specified in initializer .ops = { ^ drivers/virt/visorbus/visorchipset.c:1913:2: error: extra brace group at end of initializer drivers/virt/visorbus/visorchipset.c:1913:2: error: (near initialization for 'unisys_acpi_driver') drivers/virt/visorbus/visorchipset.c:1916:2: warning: excess elements in struct initializer }, ^ drivers/virt/visorbus/visorchipset.c:1916:2: warning: (near initialization for 'unisys_acpi_driver') drivers/virt/visorbus/visorchipset.c: In function 'visorutil_spar_detect': drivers/virt/visorbus/visorchipset.c:1925:2: error: implicit declaration of function 'boot_cpu_has' [-Werror=implicit-function-declaration] if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) { ^ drivers/virt/visorbus/visorchipset.c:1925:19: error: 'X86_FEATURE_HYPERVISOR' undeclared (first use in this function) if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) { ^ drivers/virt/visorbus/visorchipset.c:1925:19: note: each undeclared identifier is reported only once for each function it appears in drivers/virt/visorbus/visorchipset.c: In function 'init_unisys': drivers/virt/visorbus/visorchipset.c:1943:2: error: implicit declaration of function 'acpi_bus_register_driver' [-Werror=implicit-function-declaration] result = acpi_bus_register_driver(&unisys_acpi_driver); ^ drivers/virt/visorbus/visorchipset.c: In function 'exit_unisys': drivers/virt/visorbus/visorchipset.c:1953:2: error: implicit declaration of function 'acpi_bus_unregister_driver' [-Werror=implicit-function-declaration] acpi_bus_unregister_driver(&unisys_acpi_driver); ^ drivers/virt/visorbus/visorchipset.c: At top level: drivers/virt/visorbus/visorchipset.c:1903:36: warning: 'unisys_device_ids' defined but not used [-Wunused-variable] static const struct acpi_device_id unisys_device_ids[] = { ^ drivers/virt/visorbus/visorchipset.c: In function 'visorutil_spar_detect': drivers/virt/visorbus/visorchipset.c:1934:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cc1: some warnings being treated as errors vim +479 drivers/virt/visorbus/visorchipset.c 12c957dc drivers/staging/unisys/visorbus/visorchipset.c Tim Sell 2016-03-01 473 765b2f82 drivers/staging/unisys/visorbus/visorchipset.c Sameer Wadgaonkar 2017-02-21 474 err = visorchannel_read(chipset_dev->controlvm_channel, 545f0913 drivers/staging/unisys/visorbus/visorchipset.c Sameer Wadgaonkar 2017-05-19 475 offsetof(struct visor_controlvm_channel, 12c957dc drivers/staging/unisys/visorbus/visorchipset.c Tim Sell 2016-03-01 476 saved_crash_message_count), 8dff01f7 drivers/staging/unisys/visorbus/visorchipset.c David Kershner 2016-11-21 477 &local_crash_msg_count, sizeof(u16)); 8dff01f7 drivers/staging/unisys/visorbus/visorchipset.c David Kershner 2016-11-21 478 if (err) { 35301b87 drivers/staging/unisys/visorbus/visorchipset.c David Kershner 2017-04-18 @479 dev_err(&chipset_dev->acpi_device->dev, 35301b87 drivers/staging/unisys/visorbus/visorchipset.c David Kershner 2017-04-18 480 "failed to read message count\n"); 8dff01f7 drivers/staging/unisys/visorbus/visorchipset.c David Kershner 2016-11-21 481 return err; 12c957dc drivers/staging/unisys/visorbus/visorchipset.c Tim Sell 2016-03-01 482 } :::::: The code at line 479 was first introduced by commit :::::: 35301b87628df68a554d63b4baa864644008a97c staging: unisys: visorbus: get rid of POSTCODEs in save_crash_msg :::::: TO: David Kershner <david.kershner@xxxxxxxxxx> :::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip