diff options
author | Nick Child <nick.child@ibm.com> | 2021-12-16 17:00:25 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-12-23 22:33:14 +1100 |
commit | b346f57100e9417f23ee9051f0efe621a492be96 (patch) | |
tree | 2aba7a6e990d330d659d4e8afb7910a81b6aa59c /arch/powerpc/platforms/powermac/nvram.c | |
parent | powerpc/pasemi: Add __init attribute to eligible functions (diff) | |
download | linux-dev-b346f57100e9417f23ee9051f0efe621a492be96.tar.xz linux-dev-b346f57100e9417f23ee9051f0efe621a492be96.zip |
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
Diffstat (limited to 'arch/powerpc/platforms/powermac/nvram.c')
-rw-r--r-- | arch/powerpc/platforms/powermac/nvram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powermac/nvram.c b/arch/powerpc/platforms/powermac/nvram.c index 853ccc4480e2..de8fcb607290 100644 --- a/arch/powerpc/platforms/powermac/nvram.c +++ b/arch/powerpc/platforms/powermac/nvram.c @@ -258,7 +258,7 @@ static u32 core99_calc_adler(u8 *buffer) return (high << 16) | low; } -static u32 core99_check(u8* datas) +static u32 __init core99_check(u8 *datas) { struct core99_header* hdr99 = (struct core99_header*)datas; |