diff options
author | Nick Child <nick.child@ibm.com> | 2021-12-16 17:00:18 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-12-23 22:33:11 +1100 |
commit | c13f2b2bb5afd90f152c389c1c9245a0d43bce80 (patch) | |
tree | dc55c6584f0818cecc50c3a3621982861e1e8067 /arch/powerpc/mm/ptdump | |
parent | ce0c6be9c69883df38e7631d1d7364b52f6db135 (diff) | |
download | linux-stable-c13f2b2bb5afd90f152c389c1c9245a0d43bce80.tar.gz linux-stable-c13f2b2bb5afd90f152c389c1c9245a0d43bce80.tar.bz2 linux-stable-c13f2b2bb5afd90f152c389c1c9245a0d43bce80.zip |
powerpc/mm: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/mm' are deserving of an
`__init` macro attribute. These functions are only called by other
initialization functions and therefore should inherit the attribute.
Also, change function declarations in header files to include `__init`.
Signed-off-by: Nick Child <nick.child@ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211216220035.605465-4-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/mm/ptdump')
-rw-r--r-- | arch/powerpc/mm/ptdump/ptdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/ptdump/ptdump.c b/arch/powerpc/mm/ptdump/ptdump.c index 031956d0ee84..473960e4b07a 100644 --- a/arch/powerpc/mm/ptdump/ptdump.c +++ b/arch/powerpc/mm/ptdump/ptdump.c @@ -315,7 +315,7 @@ static int ptdump_show(struct seq_file *m, void *v) DEFINE_SHOW_ATTRIBUTE(ptdump); -static void build_pgtable_complete_mask(void) +static void __init build_pgtable_complete_mask(void) { unsigned int i, j; |