Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 9073/1: ptdump: add __init section marker to three 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>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>

authored by

Jisheng Zhang (syna) and committed by
Russell King
a5e8acd9 aefdd438

+3 -3
+2 -2
arch/arm/mm/dump.c
··· 420 420 note_page(&st, 0, 0, 0, NULL); 421 421 } 422 422 423 - static void ptdump_initialize(void) 423 + static void __init ptdump_initialize(void) 424 424 { 425 425 unsigned i, j; 426 426 ··· 466 466 pr_info("Checked W+X mappings: passed, no W+X pages found\n"); 467 467 } 468 468 469 - static int ptdump_init(void) 469 + static int __init ptdump_init(void) 470 470 { 471 471 ptdump_initialize(); 472 472 ptdump_debugfs_register(&kernel_ptdump_info, "kernel_page_tables");
+1 -1
arch/arm/mm/ptdump_debugfs.c
··· 24 24 .release = single_release, 25 25 }; 26 26 27 - void ptdump_debugfs_register(struct ptdump_info *info, const char *name) 27 + void __init ptdump_debugfs_register(struct ptdump_info *info, const char *name) 28 28 { 29 29 debugfs_create_file(name, 0400, NULL, info, &ptdump_fops); 30 30 }