powerpc/xmon: Move empty plpar_set_ciabr() into plpar_wrappers.h
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 8 Mar 2018 02:54:42 +0000 (13:54 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Mar 2018 12:43:04 +0000 (23:43 +1100)
Now that plpar_wrappers.h has an #ifdef PSERIES we can move the empty
version of plpar_set_ciabr() which xmon wants into there.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/plpar_wrappers.h
arch/powerpc/xmon/xmon.c

index 9233b84f489ae10bbd544d72a99e451b00a5d01c..96c1a46acbd0620ef2d9487b9f8908b36af2b352 100644 (file)
@@ -334,6 +334,12 @@ static inline long plpar_get_cpu_characteristics(struct h_cpu_char_result *p)
        return rc;
 }
 
+#else /* !CONFIG_PPC_PSERIES */
+
+static inline long plpar_set_ciabr(unsigned long ciabr)
+{
+       return 0;
+}
 #endif /* CONFIG_PPC_PSERIES */
 
 #endif /* _ASM_POWERPC_PLPAR_WRAPPERS_H */
index 2bf6e2af28c27979f70ebb59ad269394aa495bf9..a06cf6e38978163f8f3a9d2fe747981791398ffe 100644 (file)
@@ -41,6 +41,7 @@
 #include <asm/pgtable.h>
 #include <asm/mmu.h>
 #include <asm/mmu_context.h>
+#include <asm/plpar_wrappers.h>
 #include <asm/cputable.h>
 #include <asm/rtas.h>
 #include <asm/sstep.h>
 #include <asm/paca.h>
 #endif
 
-#if defined(CONFIG_PPC_SPLPAR)
-#include <asm/plpar_wrappers.h>
-#else
-static inline long plpar_set_ciabr(unsigned long ciabr) {return 0; };
-#endif
-
 #include "nonstdio.h"
 #include "dis-asm.h"