]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: add acpi_get_cpu_uid() stub helper
authorArnd Bergmann <arnd@arndb.de>
Mon, 13 Apr 2026 07:01:26 +0000 (09:01 +0200)
committerRafael J. Wysocki <rjw@rjwysocki.net>
Wed, 15 Apr 2026 14:52:20 +0000 (16:52 +0200)
commitfbd5d52ebf49595975e24e14e57632d580738091
tree9c41e27c585fc5469f32e42c05e4c22a01f9527a
parent2e31b16101834bdc0b720967845d6a0a309cf27b
ACPI: add acpi_get_cpu_uid() stub helper

When ACPI is disabled, x86 Xen support fails to build:

arch/x86/xen/enlighten_hvm.c: In function 'xen_cpu_up_prepare_hvm':
arch/x86/xen/enlighten_hvm.c:165:13: error: implicit declaration of function 'acpi_get_cpu_uid' [-Wimplicit-function-declaration]
  165 |         if (acpi_get_cpu_uid(cpu, &cpu_uid) == 0)
      |             ^~~~~~~~~~~~~~~~

Add a trivial stub that can be used in place of the real function.

Fixes: f652d0a4e13c ("ACPI: Centralize acpi_get_cpu_uid() declaration in include/linux/acpi.h")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
Link: https://patch.msgid.link/20260413070132.3828606-1-arnd@kernel.org
Signed-off-by: Rafael J. Wysocki <rjw@rjwysocki.net>
include/linux/acpi.h