summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/ptdump.h
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/include/asm/ptdump.h
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/include/asm/ptdump.h')
-rw-r--r--arch/arm64/include/asm/ptdump.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/ptdump.h b/arch/arm64/include/asm/ptdump.h
index 38187f74e089..b1dd7ecff7ef 100644
--- a/arch/arm64/include/asm/ptdump.h
+++ b/arch/arm64/include/asm/ptdump.h
@@ -23,7 +23,7 @@ struct ptdump_info {
void ptdump_walk(struct seq_file *s, struct ptdump_info *info);
#ifdef CONFIG_PTDUMP_DEBUGFS
-void ptdump_debugfs_register(struct ptdump_info *info, const char *name);
+void __init ptdump_debugfs_register(struct ptdump_info *info, const char *name);
#else
static inline void ptdump_debugfs_register(struct ptdump_info *info,
const char *name) { }