summaryrefslogtreecommitdiff
path: root/arch/powerpc/mm/nohash/fsl_book3e.c
diff options
context:
space:
mode:
authorNick Child <nick.child@ibm.com>2021-12-17 01:00:18 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2021-12-23 14:33:11 +0300
commitc13f2b2bb5afd90f152c389c1c9245a0d43bce80 (patch)
treedc55c6584f0818cecc50c3a3621982861e1e8067 /arch/powerpc/mm/nohash/fsl_book3e.c
parentce0c6be9c69883df38e7631d1d7364b52f6db135 (diff)
downloadlinux-c13f2b2bb5afd90f152c389c1c9245a0d43bce80.tar.xz
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/fsl_book3e.c')
-rw-r--r--arch/powerpc/mm/nohash/fsl_book3e.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/nohash/fsl_book3e.c b/arch/powerpc/mm/nohash/fsl_book3e.c
index 7f71bc3bf85f..dfe715e0f70a 100644
--- a/arch/powerpc/mm/nohash/fsl_book3e.c
+++ b/arch/powerpc/mm/nohash/fsl_book3e.c
@@ -259,7 +259,7 @@ void __init MMU_init_hw(void)
flush_instruction_cache();
}
-static unsigned long tlbcam_sz(int idx)
+static unsigned long __init tlbcam_sz(int idx)
{
return tlbcam_addrs[idx].limit - tlbcam_addrs[idx].start + 1;
}