[PATCH] dma-mapping, powerpc: Move arch_dma_set_mask() prototype into dma-map-ops.h

Arnd Bergmann arnd at arndb.de
Fri Aug 18 22:38:23 AEST 2023


On Fri, Aug 18, 2023, at 09:55, Christophe Leroy wrote:
> To fix the following error,
>
>   CC      arch/powerpc/kernel/dma-mask.o
> arch/powerpc/kernel/dma-mask.c:7:6: error: no previous prototype for 
> 'arch_dma_set_mask' [-Werror=missing-prototypes]
>     7 | void arch_dma_set_mask(struct device *dev, u64 dma_mask)
>       |      ^~~~~~~~~~~~~~~~~
>
> Move arch_dma_set_mask() definition into dma-map-ops.h and
> include it in arch/powerpc/kernel/dma-mask.c
>
> Signed-off-by: Christophe Leroy <christophe.leroy at csgroup.eu>
> Cc: Arnd Bergmann <arnd at arndb.de>
> ---

I sent the same patch, and this is already in linux-next as
3d6f126b15d9 ("dma-mapping: move arch_dma_set_mask() declaration
to header")

      Arnd


More information about the Linuxppc-dev mailing list