Re: [PATCH v5 2/3] PCI/P2PDMA: Move CONFIG_X86 #ifdef out of cpu_supports_p2pdma()

From: Leon Romanovsky

Date: Mon Nov 16 2026 - 09:20:02 EST


On Wed, Nov 11, 2026 at 04:44:38PM -0700, Pavel Popov wrote:
> cpu_supports_p2pdma() has an #ifdef CONFIG_X86 block inside the
> function body. Put the whole function under #ifdef CONFIG_X86 instead,
> with a stub returning false for !CONFIG_X86.
>
> No functional change.
>
> Suggested-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>
> Signed-off-by: Pavel Popov <pavel.e.popov@xxxxxxxxx>
> ---
> drivers/pci/p2pdma.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>

Thanks,
Reviewed-by: Leon Romanovsky <leon@xxxxxxxxxx>