diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2021-05-10 13:42:22 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-05-26 07:50:50 +0200 |
commit | f842f5ff6aafc2752580ed99ee757652c08684e7 (patch) | |
tree | 6266061221abec724631a3170ddc3ac8001055b6 /arch/riscv/mm | |
parent | riscv: enable generic PCI resource mapping (diff) | |
download | linux-f842f5ff6aafc2752580ed99ee757652c08684e7.tar.xz linux-f842f5ff6aafc2752580ed99ee757652c08684e7.zip |
riscv: Move setup_bootmem into paging_init
Make setup_bootmem() static.
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/mm')
-rw-r--r-- | arch/riscv/mm/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 11b61bea0c4d..dab317126846 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -114,7 +114,7 @@ void __init mem_init(void) print_vm_layout(); } -void __init setup_bootmem(void) +static void __init setup_bootmem(void) { phys_addr_t vmlinux_end = __pa_symbol(&_end); phys_addr_t vmlinux_start = __pa_symbol(&_start); @@ -861,6 +861,7 @@ RESERVEDMEM_OF_DECLARE(elfcorehdr, "linux,elfcorehdr", elfcore_hdr_setup); void __init paging_init(void) { + setup_bootmem(); setup_vm_final(); } |