Re: [PATCH] dma-mapping: Stub out dma_{alloc,free,map}_pages() API

From: Arnd Bergmann
Date: Mon Jun 16 2025 - 07:28:54 EST


On Mon, Jun 16, 2025, at 13:17, James Clark wrote:
> The implementations are in mapping.c which requires HAS_DMA so stub them
> out if not present. This is required for some drivers to pass randconfig
> builds.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes:
> https://lore.kernel.org/oe-kbuild-all/202506160036.t9VDxF6p-lkp@xxxxxxxxx/
> Signed-off-by: James Clark <james.clark@xxxxxxxxxx>

Looks good to me

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>

It may be worth adding here that HAS_DMA is set on almost
all configurations, this only showed up as an error in
a randconfig build for m68k/dragonball, which is barely
supported at all.

The other two architectures without DMA support are sh-nommu
and uml.

Arnd