riscv: mm: init: Consolidate vars, functions

Consolidate the following items in init.c

Staticize global vars as much as possible;
Add __initdata mark if the global var isn't needed after init
Add __init mark if the func isn't needed after init
Add __ro_after_init if the global var is read only after init

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
This commit is contained in:
Jisheng Zhang 2021-05-16 21:15:56 +08:00 • committed by Palmer Dabbelt
commit 0106235682
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889
2 changed files with 20 additions and 18 deletions