From: Michael Ellerman Date: Thu, 8 Mar 2018 02:54:40 +0000 (+1100) Subject: powerpc/pseries: Make plpar_wrappers.h safe to include when PSERIES=n X-Git-Tag: v5.15~9084^2~133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5017e875e497c00dbc17558161fec3ff30b2b4a9;p=platform%2Fkernel%2Flinux-starfive.git powerpc/pseries: Make plpar_wrappers.h safe to include when PSERIES=n Currently plpar_wrappers.h is not safe to include when CONFIG_PPC_PSERIES=n, or at least it can be depending on other config options and so on. Fix that by wrapping the entire content in an ifdef. Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/include/asm/plpar_wrappers.h b/arch/powerpc/include/asm/plpar_wrappers.h index 1776af9..09cb268 100644 --- a/arch/powerpc/include/asm/plpar_wrappers.h +++ b/arch/powerpc/include/asm/plpar_wrappers.h @@ -2,6 +2,8 @@ #ifndef _ASM_POWERPC_PLPAR_WRAPPERS_H #define _ASM_POWERPC_PLPAR_WRAPPERS_H +#ifdef CONFIG_PPC_PSERIES + #include #include @@ -332,4 +334,6 @@ static inline long plpar_get_cpu_characteristics(struct h_cpu_char_result *p) return rc; } +#endif /* CONFIG_PPC_PSERIES */ + #endif /* _ASM_POWERPC_PLPAR_WRAPPERS_H */