Re: [PATCH] ACPI: add acpi_get_cpu_uid() stub helper

From: fengchengwen

Date: Mon Apr 13 2026 - 07:43:14 EST


Acked-by: Chengwen Feng <fengchengwen@xxxxxxxxxx>
Thanks

On 4/13/2026 3:01 PM, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> 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@xxxxxxxx>

...