]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
powerpc: Don't include lppaca.h in paca.h
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Aug 2023 05:53:16 +0000 (15:53 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:42 +0000 (12:22 +0200)
[ Upstream commit 1aa000667669fa855853decbb1c69e974d8ff716 ]

By adding a forward declaration for struct lppaca we can untangle paca.h
and lppaca.h. Also move get_lppaca() into lppaca.h for consistency.

Add includes of lppaca.h to some files that need it.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230823055317.751786-3-mpe@ellerman.id.au
Stable-dep-of: eac030b22ea1 ("powerpc/pseries: Rework lppaca_shared_proc() to avoid DEBUG_PREEMPT")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/include/asm/lppaca.h
arch/powerpc/include/asm/paca.h
arch/powerpc/include/asm/paravirt.h
arch/powerpc/include/asm/plpar_wrappers.h
arch/powerpc/kvm/book3s_hv_ras.c
arch/powerpc/mm/book3s64/slb.c
arch/powerpc/xmon/xmon.c

index c390ec377baed0bb79504c3c4fa4faf9877aa98a..5d509ba0550b5cc35730379f933218ed22c5e31f 100644 (file)
@@ -130,6 +130,10 @@ static inline bool lppaca_shared_proc(struct lppaca *l)
        return !!(l->__old_status & LPPACA_OLD_SHARED_PROC);
 }
 
+#ifdef CONFIG_PPC_PSERIES
+#define get_lppaca()   (get_paca()->lppaca_ptr)
+#endif
+
 /*
  * SLB shadow buffer structure as defined in the PAPR.  The save_area
  * contains adjacent ESID and VSID pairs for each shadowed SLB.  The
index c5c9e251531524721676499adb314ee372a397bf..02c089c5493ad21405870d12f9e6a08ccb9b162b 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <linux/string.h>
 #include <asm/types.h>
-#include <asm/lppaca.h>
 #include <asm/mmu.h>
 #include <asm/page.h>
 #ifdef CONFIG_PPC_BOOK3E
@@ -46,14 +45,11 @@ extern unsigned int debug_smp_processor_id(void); /* from linux/smp.h */
 #define get_paca()     local_paca
 #endif
 
-#ifdef CONFIG_PPC_PSERIES
-#define get_lppaca()   (get_paca()->lppaca_ptr)
-#endif
-
 #define get_slb_shadow()       (get_paca()->slb_shadow_ptr)
 
 struct task_struct;
 struct rtas_args;
+struct lppaca;
 
 /*
  * Defines the layout of the paca.
index b325022ffa2b0f270bc71810e90b56776ea756a2..0a333ac716e0b4924bfa7c83adcbfe7a7de688b7 100644 (file)
@@ -6,6 +6,7 @@
 #include <asm/smp.h>
 #ifdef CONFIG_PPC64
 #include <asm/paca.h>
+#include <asm/lppaca.h>
 #include <asm/hvcall.h>
 #endif
 
index 83e0f701ebc67d09749396173a637b225642bf60..217d8fb24635439e3f4d239f1fab76595ab0ea9f 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <asm/hvcall.h>
 #include <asm/paca.h>
+#include <asm/lppaca.h>
 #include <asm/page.h>
 
 static inline long poll_pending(void)
index d4bca93b79f6dfac93e2372eaa788a8474e8d3ce..6fa634599bc90800e99290c938bd18a929c9fa4e 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/kvm.h>
 #include <linux/kvm_host.h>
 #include <linux/kernel.h>
+#include <asm/lppaca.h>
 #include <asm/opal.h>
 #include <asm/mce.h>
 #include <asm/machdep.h>
index f0037bcc47a0eb57a6f3aaf9062fa0bb43843705..a4fd2901189c58cb550755b89927cb11c2980833 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/mmu.h>
 #include <asm/mmu_context.h>
 #include <asm/paca.h>
+#include <asm/lppaca.h>
 #include <asm/ppc-opcode.h>
 #include <asm/cputable.h>
 #include <asm/cacheflush.h>
index 3c085e1e5232e6bfe5eed46a256c8985b680e858..8b5277c3b1476ba7cb82ccf5bcb99985829f2962 100644 (file)
@@ -59,6 +59,7 @@
 #ifdef CONFIG_PPC64
 #include <asm/hvcall.h>
 #include <asm/paca.h>
+#include <asm/lppaca.h>
 #endif
 
 #include "nonstdio.h"