]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/sysdev: Add __init attribute to eligible functions
authorNick Child <nick.child@ibm.com>
Thu, 16 Dec 2021 22:00:20 +0000 (17:00 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Dec 2021 11:33:12 +0000 (22:33 +1100)
commit9bd382860e56ef88e5703b9071d6ad3dc7a4e5c1
treed2bf1506f3f9be6939d35156174e8cb4c3f389db
parent16f857258361d58ce279db78b39d32cc7809c6d3
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
24 files changed:
arch/powerpc/include/asm/cpm2.h
arch/powerpc/include/asm/i8259.h
arch/powerpc/include/asm/ipic.h
arch/powerpc/include/asm/mpic.h
arch/powerpc/include/asm/xics.h
arch/powerpc/sysdev/cpm2.c
arch/powerpc/sysdev/dart_iommu.c
arch/powerpc/sysdev/fsl_mpic_err.c
arch/powerpc/sysdev/fsl_pci.c
arch/powerpc/sysdev/fsl_pci.h
arch/powerpc/sysdev/i8259.c
arch/powerpc/sysdev/ipic.c
arch/powerpc/sysdev/mpic.c
arch/powerpc/sysdev/mpic.h
arch/powerpc/sysdev/mpic_msi.c
arch/powerpc/sysdev/mpic_timer.c
arch/powerpc/sysdev/mpic_u3msi.c
arch/powerpc/sysdev/tsi108_pci.c
arch/powerpc/sysdev/udbg_memcons.c
arch/powerpc/sysdev/xics/icp-hv.c
arch/powerpc/sysdev/xics/icp-opal.c
arch/powerpc/sysdev/xics/xics-common.c
arch/powerpc/sysdev/xive/native.c
arch/powerpc/sysdev/xive/spapr.c