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

From: Jiaxun Yang
Date: Thu May 16 2024 - 08:26:26 EST




在2024年5月16日五月 下午12:59,Genjian写道:
> 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.

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@xxxxxxxxxxx/
>
> 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

--
- Jiaxun