[matwey:bbb-3.8-v4 978/1465] drivers//acpi/processor_driver.c:645:2: error: implicit declaration of function 'try_offline_node'; did you mean 'mem_online_node'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://github.com/matwey/linux bbb-3.8-v4
head:   95ce62d197bf09acc7489ecdb72c1c1f03ad7ba5
commit: 4a3b460fa341363ea4571a495e90c8557cc3c37e [978/1465] cpu-hotplug, memory-hotplug: try offlining the node when hotremoving a cpu
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 4a3b460fa341363ea4571a495e90c8557cc3c37e
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

Note: the matwey/bbb-3.8-v4 HEAD 95ce62d197bf09acc7489ecdb72c1c1f03ad7ba5 builds fine.
      It only hurts bisectibility.

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'; did you mean 'mem_online_node'? [-Werror=implicit-function-declaration]
     try_offline_node(cpu_to_node(pr->id));
     ^~~~~~~~~~~~~~~~
     mem_online_node
   cc1: some warnings being treated as errors

vim +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: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux