summaryrefslogtreecommitdiff
path: root/arch/arm64/mm/ptdump_debugfs.c
diff options
context:
space:
mode:
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>2021-03-30 13:54:49 +0800
committerCatalin Marinas <catalin.marinas@arm.com>2021-04-08 17:45:10 +0100
commita7dcf58ae5d2f7c6f1bbe13290897f539f9cd75b (patch)
tree74e80865402d1cd6fa7b03c5e602e42a34001245 /arch/arm64/mm/ptdump_debugfs.c
parentcccb78ce89c45a4414db712be4986edfb92434bd (diff)
arm64: 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 <Jisheng.Zhang@synaptics.com> Reviewed-by: Steven Price <steven.price@arm.com> Link: https://lore.kernel.org/r/20210330135449.4dcffd7f@xhacker.debian Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/mm/ptdump_debugfs.c')
-rw-r--r--arch/arm64/mm/ptdump_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/ptdump_debugfs.c b/arch/arm64/mm/ptdump_debugfs.c
index d29d722ec3ec..68bf1a125502 100644
--- a/arch/arm64/mm/ptdump_debugfs.c
+++ b/arch/arm64/mm/ptdump_debugfs.c
@@ -16,7 +16,7 @@ static int ptdump_show(struct seq_file *m, void *v)
}
DEFINE_SHOW_ATTRIBUTE(ptdump);
-void ptdump_debugfs_register(struct ptdump_info *info, const char *name)
+void __init ptdump_debugfs_register(struct ptdump_info *info, const char *name)
{
debugfs_create_file(name, 0400, NULL, info, &ptdump_fops);
}