]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56042f2ba3f1858315992f2631dfc38c16c29c57
tree545c8528c709c8f4a33518d82bed5342e3ceaf72
parent83f301a677cf0278e2a39e3f8e222dcdbfcec864
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