mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 04:21:09 -04:00
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: f652d0a4e1 ("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>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
2e31b16101
commit
fbd5d52ebf
@@ -959,6 +959,12 @@ static inline int acpi_table_parse(char *id,
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
static inline int acpi_get_cpu_uid(unsigned int cpu, u32 *uid)
|
||||
{
|
||||
*uid = cpu;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int acpi_nvs_register(__u64 start, __u64 size)
|
||||
{
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user