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

Some functions defined in 'arch/powerpc/lib' 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-3-nick.child@ibm.com
arch/powerpc/include/asm/setup.h
arch/powerpc/lib/code-patching.c
arch/powerpc/lib/feature-fixups.c