[arm:aarch64/hotplug-vcpu/v6.6-rc5 31/33] drivers/acpi/acpi_processor.c:565: undefined reference to `arch_unregister_cpu'

kernel test robot lkp at intel.com
Thu Oct 12 18:37:56 PDT 2023


tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git aarch64/hotplug-vcpu/v6.6-rc5
head:   172379926d6aed66b10f7cf1c954bc40a3684241
commit: 279ddae0aef8988861d8f41574994805885ce78e [31/33] ACPI: add support to register CPUs based on the _STA enabled bit
config: i386-randconfig-004-20231013 (https://download.01.org/0day-ci/archive/20231013/202310130952.iAdpQ3Sz-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231013/202310130952.iAdpQ3Sz-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310130952.iAdpQ3Sz-lkp@intel.com/

All errors (new ones prefixed by >>):

   ld: drivers/acpi/acpi_processor.o: in function `acpi_processor_post_eject':
>> drivers/acpi/acpi_processor.c:565: undefined reference to `arch_unregister_cpu'


vim +565 drivers/acpi/acpi_processor.c

   541	
   542	static void acpi_processor_post_eject(struct acpi_device *device)
   543	{
   544		struct acpi_processor *pr;
   545		unsigned long long sta;
   546		acpi_status status;
   547	
   548		if (!device)
   549			return;
   550	
   551		pr = acpi_driver_data(device);
   552		if (!pr || pr->id >= nr_cpu_ids || invalid_phys_cpuid(pr->phys_id))
   553			return;
   554	
   555		status = acpi_evaluate_integer(pr->handle, "_STA", NULL, &sta);
   556		if (ACPI_FAILURE(status))
   557			return;
   558	
   559		if (cpu_present(pr->id) && !(sta & ACPI_STA_DEVICE_PRESENT)) {
   560			acpi_processor_make_not_present(device);
   561			return;
   562		}
   563	
   564		if (cpu_present(pr->id) && !(sta & ACPI_STA_DEVICE_ENABLED))
 > 565			arch_unregister_cpu(pr->id);
   566	}
   567	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the linux-arm-kernel mailing list