diff options
author | Zong Li <zong.li@sifive.com> | 2020-07-16 09:15:26 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2020-07-30 21:37:49 +0300 |
commit | e3ef4d69456e3977117bd11edf0161a9200c1a78 (patch) | |
tree | a83487eb45a874a2baabd86d7a3476a1a06d6259 /arch/riscv | |
parent | 79b1feba54558bfb7df7c516dab29a7c9dba093c (diff) | |
download | linux-e3ef4d69456e3977117bd11edf0161a9200c1a78.tar.xz |
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.c | 2 |
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; |