diff options
author | Nick Child <nick.child@ibm.com> | 2021-12-16 23:00:26 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-12-23 12:33:15 +0100 |
commit | e5913db1ef22817e128f0a794752f7393205e00b (patch) | |
tree | bec2dbb62dbf968f3614006f3fc2919019ce34bd /arch/powerpc/include/asm/cpuidle.h | |
parent | powerpc/powermac: Add __init attribute to eligible functions (diff) | |
download | linux-e5913db1ef22817e128f0a794752f7393205e00b.tar.xz linux-e5913db1ef22817e128f0a794752f7393205e00b.zip |
powerpc/powernv: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/platforms/powernv' 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-12-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/include/asm/cpuidle.h')
-rw-r--r-- | arch/powerpc/include/asm/cpuidle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/cpuidle.h b/arch/powerpc/include/asm/cpuidle.h index 9844b3ded187..0cce5dc7fb1c 100644 --- a/arch/powerpc/include/asm/cpuidle.h +++ b/arch/powerpc/include/asm/cpuidle.h @@ -85,7 +85,7 @@ extern struct pnv_idle_states_t *pnv_idle_states; extern int nr_pnv_idle_states; unsigned long pnv_cpu_offline(unsigned int cpu); -int validate_psscr_val_mask(u64 *psscr_val, u64 *psscr_mask, u32 flags); +int __init validate_psscr_val_mask(u64 *psscr_val, u64 *psscr_mask, u32 flags); static inline void report_invalid_psscr_val(u64 psscr_val, int err) { switch (err) { |