Re: [PATCH] ACPI: add acpi_get_cpu_uid() stub helper
From: Rafael J. Wysocki
Date: Wed Apr 15 2026 - 13:20:38 EST
On Mon, Apr 13, 2026 at 1:42 PM fengchengwen <fengchengwen@xxxxxxxxxx> wrote:
>
> 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>
>
> ...
Applied as 7.1-rc material, thanks!