summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/ipic.h
diff options
context:
space:
mode:
authorNick Child <nick.child@ibm.com>2021-12-17 01:00:20 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2021-12-23 14:33:12 +0300
commit6c552983d0e65a8c923dfacc4f69b694205672c1 (patch)
treed2bf1506f3f9be6939d35156174e8cb4c3f389db /arch/powerpc/include/asm/ipic.h
parentc49f5d88ff0166ffa4e48ee8ce84d63719f346be (diff)
downloadlinux-6c552983d0e65a8c923dfacc4f69b694205672c1.tar.xz
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/include/asm/ipic.h')
-rw-r--r--arch/powerpc/include/asm/ipic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/ipic.h b/arch/powerpc/include/asm/ipic.h
index 0524df31a7e6..b47ca7dc7199 100644
--- a/arch/powerpc/include/asm/ipic.h
+++ b/arch/powerpc/include/asm/ipic.h
@@ -65,7 +65,7 @@ enum ipic_mcp_irq {
IPIC_MCP_MU = 7,
};
-extern void ipic_set_default_priority(void);
+void __init ipic_set_default_priority(void);
extern u32 ipic_get_mcp_status(void);
extern void ipic_clear_mcp_status(u32 mask);