[arm:aarch64/hotplug-vcpu/v6.7 22/42] drivers/acpi/scan.c:2387:15: error: use of undeclared identifier 'ACPI_PROCESSOR_DEVICE_HID'; did you mean 'ACPI_RECONFIG_DEVICE_ADD'?

kernel test robot lkp at intel.com
Tue Jan 9 03:21:00 PST 2024


tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git aarch64/hotplug-vcpu/v6.7
head:   8fc7aed65dda1d73bd1423f9b82029b354ce027d
commit: 65e760d9bf772f49ab4398c1a529816d030d4c11 [22/42] ACPI: Only enumerate enabled (or functional) processor devices
config: x86_64-randconfig-161-20240109 (https://download.01.org/0day-ci/archive/20240109/202401091952.kpNcMQyp-lkp@intel.com/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240109/202401091952.kpNcMQyp-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/202401091952.kpNcMQyp-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/acpi/scan.c:2387:15: error: use of undeclared identifier 'ACPI_PROCESSOR_DEVICE_HID'; did you mean 'ACPI_RECONFIG_DEVICE_ADD'?
    2387 |                     !strcmp(ACPI_PROCESSOR_DEVICE_HID, hwid->id))
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
         |                             ACPI_RECONFIG_DEVICE_ADD
   include/linux/acpi.h:720:2: note: 'ACPI_RECONFIG_DEVICE_ADD' declared here
     720 |         ACPI_RECONFIG_DEVICE_ADD = 0,
         |         ^
   1 error generated.


vim +2387 drivers/acpi/scan.c

  2374	
  2375	static bool acpi_dev_is_processor(const struct acpi_device *device)
  2376	{
  2377		struct acpi_hardware_id *hwid;
  2378	
  2379		if (device->device_type == ACPI_BUS_TYPE_PROCESSOR)
  2380			return true;
  2381	
  2382		if (device->device_type != ACPI_BUS_TYPE_DEVICE)
  2383			return false;
  2384	
  2385		list_for_each_entry(hwid, &device->pnp.ids, list)
  2386			if (!strcmp(ACPI_PROCESSOR_OBJECT_HID, hwid->id) ||
> 2387			    !strcmp(ACPI_PROCESSOR_DEVICE_HID, hwid->id))
  2388				return true;
  2389	
  2390		return false;
  2391	}
  2392	

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



More information about the linux-arm-kernel mailing list