powerpc/pseries: Add __init attribute to eligible functions
authorNick Child <nick.child@ibm.com>
Thu, 16 Dec 2021 22:00:27 +0000 (17:00 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Dec 2021 11:33:15 +0000 (22:33 +1100)
commite14ff96d08f0ade9dd33081d909ad65a02a858c1
tree545c8528c709c8f4a33518d82bed5342e3ceaf72
parente5913db1ef22817e128f0a794752f7393205e00b
powerpc/pseries: Add __init attribute to eligible functions

Some functions defined in 'arch/powerpc/platforms/pseries' 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-13-nick.child@ibm.com
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/include/asm/iommu.h
arch/powerpc/include/asm/setup.h
arch/powerpc/platforms/pseries/event_sources.c
arch/powerpc/platforms/pseries/iommu.c
arch/powerpc/platforms/pseries/lpar.c
arch/powerpc/platforms/pseries/pseries.h
arch/powerpc/platforms/pseries/rtas-fadump.c
arch/powerpc/platforms/pseries/setup.c
arch/powerpc/platforms/pseries/vas.c
arch/powerpc/platforms/pseries/vio.c