mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] MIPS: Loongson64: include asm/bootinfo.h
@ 2024-05-16 11:59 Genjian
  2024-05-16 11:59 ` [PATCH 2/3] MIPS: sgi-ip22: Add prototypes for several functions to header Genjian
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Genjian @ 2024-05-16 11:59 UTC (permalink / raw)
  To: tsbogend, chenhuacai, jiaxun.yang, ricardo
  Cc: linux-mips, linux-kernel, Genjian Zhang, k2ci

From: Genjian Zhang <zhanggenjian@kylinos.cn>

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@kylinos.cn>
Signed-off-by: Genjian Zhang <zhanggenjian@kylinos.cn>
---
 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-11 12:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-16 11:59 [PATCH 1/3] MIPS: Loongson64: include asm/bootinfo.h Genjian
2024-05-16 11:59 ` [PATCH 2/3] MIPS: sgi-ip22: Add prototypes for several functions to header Genjian
2024-06-11 11:21   ` Thomas Bogendoerfer
2024-05-16 11:59 ` [PATCH 3/3] MIPS: ip22-gio: Make ip22_gio_set_64bit() and ip22_gio_init() static Genjian
2024-06-11 11:21   ` Thomas Bogendoerfer
2024-05-16 12:21 ` [PATCH 1/3] MIPS: Loongson64: include asm/bootinfo.h Jiaxun Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®