powerpc/pseries: Move hcall_vphn() prototype into vphn.h
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Aug 2023 05:53:15 +0000 (15:53 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Aug 2023 12:33:16 +0000 (22:33 +1000)
Consolidate the two prototypes for hcall_vphn() into vphn.h.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230823055317.751786-2-mpe@ellerman.id.au
arch/powerpc/include/asm/dtl.h
arch/powerpc/include/asm/lppaca.h
arch/powerpc/include/asm/vphn.h

index 4bcb9f9ac76491c249b271be333543727c849764..d6f43d149f8dcb5a1b392a49d74bb40294e9d38f 100644 (file)
@@ -39,6 +39,5 @@ extern rwlock_t dtl_access_lock;
 
 extern void register_dtl_buffer(int cpu);
 extern void alloc_dtl_buffers(unsigned long *time_limit);
-extern long hcall_vphn(unsigned long cpu, u64 flags, __be32 *associativity);
 
 #endif /* _ASM_POWERPC_DTL_H */
index 12159e5b6888723c1fec3def1e11f0618812374d..27f0421188ec8b246f8e388b4a563662eff9dcd1 100644 (file)
@@ -127,8 +127,6 @@ struct slb_shadow {
        } save_area[SLB_NUM_BOLTED];
 } ____cacheline_aligned;
 
-extern long hcall_vphn(unsigned long cpu, u64 flags, __be32 *associativity);
-
 #endif /* CONFIG_PPC_BOOK3S */
 #endif /* __KERNEL__ */
 #endif /* _ASM_POWERPC_LPPACA_H */
index e0970603fce2c8354fbd8ad58bf64f400d388656..8c2f795eea685cc1e84c02b6ef2db6bdd7ed06d3 100644 (file)
@@ -19,4 +19,6 @@
 #define VPHN_FLAG_VCPU 1
 #define VPHN_FLAG_PCPU 2
 
+long hcall_vphn(unsigned long cpu, u64 flags, __be32 *associativity);
+
 #endif // _ASM_POWERPC_VPHN_H