Re: [PATCH v5 1/3] asm-generic: Add <asm-generic/cpu_device_id.h>
From: Logan Gunthorpe
Date: Thu Nov 12 2026 - 23:28:28 EST
On 2026-11-11 5:44 p.m., Pavel Popov wrote:
> <asm/cpu_device_id.h> exists only on x86, so generic code that
> matches on x86 CPU models has to wrap the include in #ifdef
> CONFIG_X86.
>
> Add an empty generic version, so the header can be included
> unconditionally. The CPU match tables themselves still need
> CONFIG_X86 for the model defines.
>
> Suggested-by: Leon Romanovsky <leon@xxxxxxxxxx>
> Link: https://lore.kernel.org/r/25a0cdb4-9c4f-4531-bdf2-8d09eedd0883@xxxxxxxxxxxxxxxx
> Signed-off-by: Pavel Popov <pavel.e.popov@xxxxxxxxx>
That's simpler than I thought and seems good to me:
Reviewed-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>