diff options
author | Jisheng Zhang <Jisheng.Zhang@synaptics.com> | 2021-03-30 08:54:49 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2021-04-08 19:45:10 +0300 |
commit | a7dcf58ae5d2f7c6f1bbe13290897f539f9cd75b (patch) | |
tree | 74e80865402d1cd6fa7b03c5e602e42a34001245 /arch/arm64/mm/ptdump.c | |
parent | cccb78ce89c45a4414db712be4986edfb92434bd (diff) | |
download | linux-a7dcf58ae5d2f7c6f1bbe13290897f539f9cd75b.tar.xz |
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.c')
-rw-r--r-- | arch/arm64/mm/ptdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/mm/ptdump.c b/arch/arm64/mm/ptdump.c index 0e050d76b83a..a50e92ea1878 100644 --- a/arch/arm64/mm/ptdump.c +++ b/arch/arm64/mm/ptdump.c @@ -337,7 +337,7 @@ void ptdump_walk(struct seq_file *s, struct ptdump_info *info) ptdump_walk_pgd(&st.ptdump, info->mm, NULL); } -static void ptdump_initialize(void) +static void __init ptdump_initialize(void) { unsigned i, j; @@ -381,7 +381,7 @@ void ptdump_check_wx(void) pr_info("Checked W+X mappings: passed, no W+X pages found\n"); } -static int ptdump_init(void) +static int __init ptdump_init(void) { address_markers[PAGE_END_NR].start_address = PAGE_END; #if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS) |