From: Zong Li <zong.li@sifive.com>
To: palmer@dabbelt.com, paul.walmsley@sifive.com,
linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: Zong Li <zong.li@sifive.com>
Subject: [PATCH 1/2] riscv: Fix build warning for mm/init
Date: Thu, 16 Jul 2020 14:15:26 +0800 [thread overview]
Message-ID: <0ce0ae99b9af776497bce02f9ee1efb85797ce9f.1594880014.git.zong.li@sifive.com> (raw)
In-Reply-To: <cover.1594880014.git.zong.li@sifive.com>
Add static keyword for resource_init, this function is only used in this
object file.
Signed-off-by: Zong Li <zong.li@sifive.com>
---
arch/riscv/mm/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
index 92002952c621..66f5952f39c0 100644
--- a/arch/riscv/mm/init.c
+++ b/arch/riscv/mm/init.c
@@ -517,7 +517,7 @@ void mark_rodata_ro(void)
}
#endif
-void __init resource_init(void)
+static void __init resource_init(void)
{
struct memblock_region *region;
--
2.27.0
next prev parent reply other threads:[~2020-07-16 6:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-16 6:15 [PATCH 0/2] Fix some build warnings when W=1 Zong Li
2020-07-16 6:15 ` Zong Li [this message]
2020-07-16 6:15 ` [PATCH 2/2] riscv: fix build warning of mm/pageattr Zong Li
2020-07-16 7:11 ` Pekka Enberg
2020-07-16 7:13 ` Pekka Enberg
2020-07-16 7:24 ` Andreas Schwab
2020-07-16 7:46 ` Zong Li
2020-07-25 18:24 ` [PATCH 0/2] Fix some build warnings when W=1 Palmer Dabbelt
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=0ce0ae99b9af776497bce02f9ee1efb85797ce9f.1594880014.git.zong.li@sifive.com \
--to=zong.li@sifive.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
/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 NNTP newsgroup(s).