* [matwey:bbb-3.8-3.9 160/312] drivers/acpi/processor_driver.c:645:2: error: implicit declaration of function 'try_offline_node'
@ 2018-02-02 19:32 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-02-02 19:32 UTC (permalink / raw)
To: Wen Congyang
Cc: kbuild-all, Matwey V. Kornilov, Tang Chen, Andrew Morton,
Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 2194 bytes --]
tree: https://github.com/matwey/linux bbb-3.8-3.9
head: f24c5d4dc718b210b6a2d874187f43e63b99d162
commit: 05c2105e30f5c2d8cb486ff5fd20059b401ddbb9 [160/312] cpu-hotplug, memory-hotplug: try offlining the node when hotremoving a cpu
config: i386-randconfig-a1-201804 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout 05c2105e30f5c2d8cb486ff5fd20059b401ddbb9
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
drivers/acpi/processor_driver.c: In function 'acpi_processor_remove':
>> drivers/acpi/processor_driver.c:645:2: error: implicit declaration of function 'try_offline_node' [-Werror=implicit-function-declaration]
try_offline_node(cpu_to_node(pr->id));
^
cc1: some warnings being treated as errors
vim +/try_offline_node +645 drivers/acpi/processor_driver.c
613
614 static int acpi_processor_remove(struct acpi_device *device)
615 {
616 struct acpi_processor *pr = NULL;
617
618
619 if (!device || !acpi_driver_data(device))
620 return -EINVAL;
621
622 pr = acpi_driver_data(device);
623
624 if (pr->id >= nr_cpu_ids)
625 goto free;
626
627 if (device->removal_type == ACPI_BUS_REMOVAL_EJECT) {
628 if (acpi_processor_handle_eject(pr))
629 return -EINVAL;
630 }
631
632 acpi_processor_power_exit(pr);
633
634 sysfs_remove_link(&device->dev.kobj, "sysdev");
635
636 if (pr->cdev) {
637 sysfs_remove_link(&device->dev.kobj, "thermal_cooling");
638 sysfs_remove_link(&pr->cdev->device.kobj, "device");
639 thermal_cooling_device_unregister(pr->cdev);
640 pr->cdev = NULL;
641 }
642
643 per_cpu(processors, pr->id) = NULL;
644 per_cpu(processor_device_array, pr->id) = NULL;
> 645 try_offline_node(cpu_to_node(pr->id));
646
647 free:
648 free_cpumask_var(pr->throttling.shared_cpu_map);
649 kfree(pr);
650
651 return 0;
652 }
653
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 19502 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-02 19:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-02 19:32 [matwey:bbb-3.8-3.9 160/312] drivers/acpi/processor_driver.c:645:2: error: implicit declaration of function 'try_offline_node' kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox