summaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
authorZong Li <zong.li@sifive.com>2020-07-16 14:15:26 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-07-30 11:37:49 -0700
commite3ef4d69456e3977117bd11edf0161a9200c1a78 (patch)
treea83487eb45a874a2baabd86d7a3476a1a06d6259 /arch/riscv
parent79b1feba54558bfb7df7c516dab29a7c9dba093c (diff)
riscv: Fix build warning for mm/init
Add static keyword for resource_init, this function is only used in this object file. Signed-off-by: Zong Li <zong.li@sifive.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/mm/init.c2
1 files changed, 1 insertions, 1 deletions
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;