]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powermac: Add __init attribute to eligible functions
authorNick Child <nick.child@ibm.com>
Thu, 16 Dec 2021 22:00:25 +0000 (17:00 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Dec 2021 11:33:14 +0000 (22:33 +1100)
commit79aa6effb2ec7bbff784ef24f99539b9fe5ab414
tree2aba7a6e990d330d659d4e8afb7910a81b6aa59c
parent99426cf08d177358f32fc2ee33072cfe8b690dbd
powerpc/powermac: Add __init attribute to eligible functions

Some functions defined in 'arch/powerpc/platforms/powermac` 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-11-nick.child@ibm.com
arch/powerpc/include/asm/smu.h
arch/powerpc/include/asm/udbg.h
arch/powerpc/platforms/powermac/feature.c
arch/powerpc/platforms/powermac/nvram.c
arch/powerpc/platforms/powermac/pfunc_base.c
arch/powerpc/platforms/powermac/setup.c
arch/powerpc/platforms/powermac/smp.c
arch/powerpc/platforms/powermac/udbg_scc.c