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

kernel test robot lkp at intel.com
Tue Jan 9 01:01:27 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: arm64-defconfig (https://download.01.org/0day-ci/archive/20240109/202401091729.qGPJAyvL-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240109/202401091729.qGPJAyvL-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/202401091729.qGPJAyvL-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/acpi/scan.c: In function 'acpi_dev_is_processor':
>> drivers/acpi/scan.c:2387:29: error: 'ACPI_PROCESSOR_DEVICE_HID' undeclared (first use in this function); did you mean 'ACPI_PROCESSOR_OBJECT_HID'?
    2387 |                     !strcmp(ACPI_PROCESSOR_DEVICE_HID, hwid->id))
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
         |                             ACPI_PROCESSOR_OBJECT_HID
   drivers/acpi/scan.c:2387:29: note: each undeclared identifier is reported only once for each function it appears in


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