diff options
author | Nick Child <nick.child@ibm.com> | 2021-12-16 23:00:18 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-12-23 12:33:11 +0100 |
commit | c13f2b2bb5afd90f152c389c1c9245a0d43bce80 (patch) | |
tree | dc55c6584f0818cecc50c3a3621982861e1e8067 /arch/powerpc/mm/nohash/tlb.c | |
parent | powerpc/lib: Add __init attribute to eligible functions (diff) | |
download | linux-c13f2b2bb5afd90f152c389c1c9245a0d43bce80.tar.xz linux-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/nohash/tlb.c')
-rw-r--r-- | arch/powerpc/mm/nohash/tlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/nohash/tlb.c b/arch/powerpc/mm/nohash/tlb.c index 311281063d48..fd2c77af5c55 100644 --- a/arch/powerpc/mm/nohash/tlb.c +++ b/arch/powerpc/mm/nohash/tlb.c @@ -432,7 +432,7 @@ void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned long address) } } -static void setup_page_sizes(void) +static void __init setup_page_sizes(void) { unsigned int tlb0cfg; unsigned int tlb0ps; @@ -570,7 +570,7 @@ out: } } -static void setup_mmu_htw(void) +static void __init setup_mmu_htw(void) { /* * If we want to use HW tablewalk, enable it by patching the TLB miss |