aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/mpic.h
diff options
context:
space:
mode:
authorGravatar Nick Child <nick.child@ibm.com> 2021-12-16 17:00:24 -0500
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2021-12-23 22:33:14 +1100
commite37e06af9b0d6b7828159455d33f8ef45c456460 (patch)
tree31cedff10ba1b650978f6edf2eb603ef18005aae /arch/powerpc/sysdev/mpic.h
parentpowerpc/chrp: Add __init attribute to eligible functions (diff)
downloadlinux-e37e06af9b0d6b7828159455d33f8ef45c456460.tar.gz
linux-e37e06af9b0d6b7828159455d33f8ef45c456460.tar.bz2
linux-e37e06af9b0d6b7828159455d33f8ef45c456460.zip
powerpc/pasemi: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/platforms/pasemi' 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-10-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/sysdev/mpic.h')
-rw-r--r--arch/powerpc/sysdev/mpic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/mpic.h b/arch/powerpc/sysdev/mpic.h
index cbcc3fee9fca..bb460ff57a06 100644
--- a/arch/powerpc/sysdev/mpic.h
+++ b/arch/powerpc/sysdev/mpic.h
@@ -24,7 +24,7 @@ static inline int mpic_u3msi_init(struct mpic *mpic)
#endif
#if defined(CONFIG_PCI_MSI) && defined(CONFIG_PPC_PASEMI)
-int mpic_pasemi_msi_init(struct mpic *mpic);
+int __init mpic_pasemi_msi_init(struct mpic *mpic);
#else
static inline int mpic_pasemi_msi_init(struct mpic *mpic) { return -1; }
#endif