aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/dart_iommu.c
diff options
context:
space:
mode:
authorNick Child <nick.child@ibm.com>2021-12-16 17:00:20 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2021-12-23 22:33:12 +1100
commit6c552983d0e65a8c923dfacc4f69b694205672c1 (patch)
treed2bf1506f3f9be6939d35156174e8cb4c3f389db /arch/powerpc/sysdev/dart_iommu.c
parentc49f5d88ff0166ffa4e48ee8ce84d63719f346be (diff)
downloadlinux-6c552983d0e65a8c923dfacc4f69b694205672c1.tar.gz
linux-6c552983d0e65a8c923dfacc4f69b694205672c1.tar.bz2
linux-6c552983d0e65a8c923dfacc4f69b694205672c1.zip
powerpc/sysdev: Add __init attribute to eligible functions
Some files functions in 'arch/powerpc/sysdev' 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-6-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/sysdev/dart_iommu.c')
-rw-r--r--arch/powerpc/sysdev/dart_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/dart_iommu.c b/arch/powerpc/sysdev/dart_iommu.c
index 1d33b7a5ea83..be6b99b1b352 100644
--- a/arch/powerpc/sysdev/dart_iommu.c
+++ b/arch/powerpc/sysdev/dart_iommu.c
@@ -226,7 +226,7 @@ static void dart_free(struct iommu_table *tbl, long index, long npages)
dart_cache_sync(orig_dp, orig_npages);
}
-static void allocate_dart(void)
+static void __init allocate_dart(void)
{
unsigned long tmp;