Linux-MIPS Archive mirror
 help / color / mirror / Atom feed
From: Genjian <zhanggenjian@126.com>
To: tsbogend@alpha.franken.de, chenhuacai@kernel.org,
	jiaxun.yang@flygoat.com, ricardo@marliere.net
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
	Genjian Zhang <zhanggenjian@kylinos.cn>,
	k2ci <kernel-bot@kylinos.cn>
Subject: [PATCH 1/3] MIPS: Loongson64: include asm/bootinfo.h
Date: Thu, 16 May 2024 19:59:04 +0800	[thread overview]
Message-ID: <20240516115906.1224164-1-zhanggenjian@126.com> (raw)

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


             reply	other threads:[~2024-05-16 12:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-16 11:59 Genjian [this message]
2024-05-16 11:59 ` [PATCH 2/3] MIPS: sgi-ip22: Add prototypes for several functions to header Genjian
2024-05-16 11:59 ` [PATCH 3/3] MIPS: ip22-gio: Make ip22_gio_set_64bit() and ip22_gio_init() static Genjian
2024-05-16 12:21 ` [PATCH 1/3] MIPS: Loongson64: include asm/bootinfo.h Jiaxun Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240516115906.1224164-1-zhanggenjian@126.com \
    --to=zhanggenjian@126.com \
    --cc=chenhuacai@kernel.org \
    --cc=jiaxun.yang@flygoat.com \
    --cc=kernel-bot@kylinos.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=ricardo@marliere.net \
    --cc=tsbogend@alpha.franken.de \
    --cc=zhanggenjian@kylinos.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).