]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
MIPS: Loongson64: Include bootinfo.h in dma.c
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 7 May 2024 18:51:20 +0000 (19:51 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 11 Jun 2024 11:04:11 +0000 (13:04 +0200)
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>
arch/mips/loongson64/dma.c

index 8220a1bc0db64e5ab6a3fcf73eede9b2c8ecf9ff..52801442ea86ce0c73d189080b5817c94b9eb191 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/dma-direct.h>
 #include <linux/init.h>
 #include <linux/swiotlb.h>
+#include <asm/bootinfo.h>
 #include <boot_param.h>
 
 dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)