Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Loongson64: Include bootinfo.h in dma.c

dma.c defined function plat_swiotlb_setup, which is declared in
bootinfo.h.

Fixes warning:
arch/mips/loongson64/dma.c:25:13: warning: no previous prototype for ‘plat_swiotlb_setup’ [-Wmissing-prototypes]
25 | void __init plat_swiotlb_setup(void)
| ^~~~~~~~~~~~~~~~~~

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Jiaxun Yang and committed by
Thomas Bogendoerfer
40a48dd3 4ba491dd

+1
+1
arch/mips/loongson64/dma.c
··· 2 2 #include <linux/dma-direct.h> 3 3 #include <linux/init.h> 4 4 #include <linux/swiotlb.h> 5 + #include <asm/bootinfo.h> 5 6 #include <boot_param.h> 6 7 7 8 dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)