diff mbox series

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

Message ID 20240516115906.1224164-1-zhanggenjian@126.com (mailing list archive)
State Superseded
Headers show
Series [1/3] MIPS: Loongson64: include asm/bootinfo.h | expand

Commit Message

Genjian May 16, 2024, 11:59 a.m. UTC
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(+)

Comments

Jiaxun Yang May 16, 2024, 12:21 p.m. UTC | #1
在2024年5月16日五月 下午12:59,Genjian写道:
> 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.

Duplicated with my patch[1], but thanks for the patch anyway.

Thanks
[1]: https://lore.kernel.org/linux-mips/20240507-loongson64-warnings-v1-2-2cad88344e9e@flygoat.com/
>
> 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
diff mbox series

Patch

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)
 {