summaryrefslogtreecommitdiffstats
path: root/arch/riscv/mm/ptdump.c
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@kernel.org>2021-03-30 02:22:21 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-04-26 08:25:07 -0700
commit1987501b1130c6b4b7e1cef4b9c1dc9a8adae025 (patch)
treeac8706cf99e89299276273498ce05a6b58b90644 /arch/riscv/mm/ptdump.c
parent0df68ce4c26a48115a9e8d45e24f18d964a10050 (diff)
downloadlinux-stable-1987501b1130c6b4b7e1cef4b9c1dc9a8adae025.tar.gz
linux-stable-1987501b1130c6b4b7e1cef4b9c1dc9a8adae025.tar.bz2
linux-stable-1987501b1130c6b4b7e1cef4b9c1dc9a8adae025.zip
riscv: add __init section marker to some functions
They are not needed after booting, so mark them as __init to move them to the __init section. Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/mm/ptdump.c')
-rw-r--r--arch/riscv/mm/ptdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/mm/ptdump.c b/arch/riscv/mm/ptdump.c
index 0aba4421115c..92179598d8f8 100644
--- a/arch/riscv/mm/ptdump.c
+++ b/arch/riscv/mm/ptdump.c
@@ -358,7 +358,7 @@ static int ptdump_show(struct seq_file *m, void *v)
DEFINE_SHOW_ATTRIBUTE(ptdump);
-static int ptdump_init(void)
+static int __init ptdump_init(void)
{
unsigned int i, j;