summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/ps3/gelic_udbg.c
diff options
context:
space:
mode:
authorNick Child <nick.child@ibm.com>2021-12-16 17:00:28 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2021-12-23 22:33:16 +1100
commitf1ba9b9474a9e32b9c173c91e71f713bfa7b2463 (patch)
tree14002bfe461981da159bb58a694b5e667e68dd02 /arch/powerpc/platforms/ps3/gelic_udbg.c
parente14ff96d08f0ade9dd33081d909ad65a02a858c1 (diff)
powerpc/ps3: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/platforms/ps3' 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-14-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/platforms/ps3/gelic_udbg.c')
-rw-r--r--arch/powerpc/platforms/ps3/gelic_udbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/ps3/gelic_udbg.c b/arch/powerpc/platforms/ps3/gelic_udbg.c
index cba4f8f5b8d7..6b298010fd84 100644
--- a/arch/powerpc/platforms/ps3/gelic_udbg.c
+++ b/arch/powerpc/platforms/ps3/gelic_udbg.c
@@ -113,7 +113,7 @@ static int unmap_dma_mem(int bus_id, int dev_id, u64 bus_addr, size_t len)
return lv1_free_device_dma_region(bus_id, dev_id, real_bus_addr);
}
-static void gelic_debug_init(void)
+static void __init gelic_debug_init(void)
{
s64 result;
u64 v2;