[PATCH 1/3] MIPS: Loongson64: include asm/bootinfo.h

From: Genjian
Date: Thu May 16 2024 - 08:18:35 EST


From: Genjian Zhang <zhanggenjian@xxxxxxxxxx>

build-warning is printed:
arch/mips/loongson64/dma.c:25:13: error: no previous prototype for ‘plat_swiotlb_setup’ [-Werror=missing-prototypes]

Include the header to fix it.

Reported-by: k2ci <kernel-bot@xxxxxxxxxx>
Signed-off-by: Genjian Zhang <zhanggenjian@xxxxxxxxxx>
---
arch/mips/loongson64/dma.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/mips/loongson64/dma.c b/arch/mips/loongson64/dma.c
index 8220a1bc0db6..5c5e524b9121 100644
--- a/arch/mips/loongson64/dma.c
+++ b/arch/mips/loongson64/dma.c
@@ -3,6 +3,7 @@
#include <linux/init.h>
#include <linux/swiotlb.h>
#include <boot_param.h>
+#include <asm/bootinfo.h>

dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
{
--
2.25.1