mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
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
This commit is contained in:
committed by
Michael Ellerman
parent
d3aa3c5edf
commit
e37e06af9b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user