aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/powerpc/mm/book3s64/hugetlbpage.c
diff options
context:
space:
mode:
authorNick Child <nick.child@ibm.com>2021-12-16 17:00:18 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2021-12-23 22:33:11 +1100
commitc13f2b2bb5afd90f152c389c1c9245a0d43bce80 (patch)
treedc55c6584f0818cecc50c3a3621982861e1e8067 /arch/powerpc/mm/book3s64/hugetlbpage.c
parentpowerpc/lib: Add __init attribute to eligible functions (diff)
downloadwireguard-linux-c13f2b2bb5afd90f152c389c1c9245a0d43bce80.tar.xz
wireguard-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/book3s64/hugetlbpage.c')
-rw-r--r--arch/powerpc/mm/book3s64/hugetlbpage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/book3s64/hugetlbpage.c b/arch/powerpc/mm/book3s64/hugetlbpage.c
index 95b2a283fd6e..ea8f83afb0ae 100644
--- a/arch/powerpc/mm/book3s64/hugetlbpage.c
+++ b/arch/powerpc/mm/book3s64/hugetlbpage.c
@@ -150,7 +150,7 @@ void huge_ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr
set_huge_pte_at(vma->vm_mm, addr, ptep, pte);
}
-void hugetlbpage_init_default(void)
+void __init hugetlbpage_init_default(void)
{
/* Set default large page size. Currently, we pick 16M or 1M
* depending on what is available