rtas_call_reentrant() isn't platform-dependent; move it out of CONFIG_PPC_PSERIES-guarded code.
Signed-off-by: Nathan Lynch <nath...@linux.ibm.com> --- arch/powerpc/kernel/rtas.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index 954f41676f69..b40fc892138b 100644 --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c @@ -897,6 +897,12 @@ int rtas_ibm_suspend_me(u64 handle) return atomic_read(&data.error); } +#else /* CONFIG_PPC_PSERIES */ +int rtas_ibm_suspend_me(u64 handle) +{ + return -ENOSYS; +} +#endif /** * rtas_call_reentrant() - Used for reentrant rtas calls @@ -948,13 +954,6 @@ int rtas_call_reentrant(int token, int nargs, int nret, int *outputs, ...) return ret; } -#else /* CONFIG_PPC_PSERIES */ -int rtas_ibm_suspend_me(u64 handle) -{ - return -ENOSYS; -} -#endif - /** * Find a specific pseries error log in an RTAS extended event log. * @log: RTAS error/event log -- 2.25.4