All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] Remove unused declarations for powerpc
@ 2022-09-13  7:50 Gaosheng Cui
  2022-09-13  7:50 ` [PATCH 1/9] powerpc/xmon: remove unused ppc_parse_cpu() declaration Gaosheng Cui
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: Gaosheng Cui @ 2022-09-13  7:50 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, geoff, jk, arnd, clg, aik,
	maciej.szmigiero, seanjc, jgg, willy, nick.child, bsingharora,
	michael, arnd.bergmann, paulus, benh, alistair, miltonm,
	Geert.Uytterhoeven, geoffrey.levand, yu.liu, scottwood, hollisb,
	avi, agraf, cuigaosheng1
  Cc: linuxppc-dev

This series contains a few cleanup patches, to remove unused
declarations which have been removed. Thanks!

Gaosheng Cui (9):
  powerpc/xmon: remove unused ppc_parse_cpu() declaration
  powerpc/spufs: remove orphan declarations from spufs.h
  powerpc: remove unused chrp_event_scan() declaration
  powerpc: remove unused udbg_init_debug_beat() declaration
  powerpc/mm: remove orphan declarations from mmu_context.h
  powerpc/powernv: remove orphan declarations from opal.h
  powerpc/sysdev: remove unused xics_ipi_dispatch() declaration
  powerpc/ps3: remove orphan declarations from ps3av.h
  KVM: PPC: remove orphan declarations from kvm_ppc.h

 arch/powerpc/include/asm/kvm_ppc.h        | 4 ----
 arch/powerpc/include/asm/mmu_context.h    | 2 --
 arch/powerpc/include/asm/opal.h           | 6 ------
 arch/powerpc/include/asm/ps3av.h          | 2 --
 arch/powerpc/include/asm/udbg.h           | 1 -
 arch/powerpc/include/asm/xics.h           | 1 -
 arch/powerpc/platforms/cell/spufs/spufs.h | 2 --
 arch/powerpc/platforms/chrp/chrp.h        | 1 -
 arch/powerpc/xmon/ppc.h                   | 2 --
 9 files changed, 21 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 1/9] powerpc/xmon: remove unused ppc_parse_cpu() declaration
  2022-09-13  7:50 [PATCH 0/9] Remove unused declarations for powerpc Gaosheng Cui
@ 2022-09-13  7:50 ` Gaosheng Cui
  2022-09-13  7:50 ` [PATCH 2/9] powerpc/spufs: remove orphan declarations from spufs.h Gaosheng Cui
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: Gaosheng Cui @ 2022-09-13  7:50 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, geoff, jk, arnd, clg, aik,
	maciej.szmigiero, seanjc, jgg, willy, nick.child, bsingharora,
	michael, arnd.bergmann, paulus, benh, alistair, miltonm,
	Geert.Uytterhoeven, geoffrey.levand, yu.liu, scottwood, hollisb,
	avi, agraf, cuigaosheng1
  Cc: linuxppc-dev

ppc_parse_cpu() has been removed since
commit 5b102782c7f4 ("powerpc/xmon: Enable disassembly
files (compilation changes)"), so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/powerpc/xmon/ppc.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/powerpc/xmon/ppc.h b/arch/powerpc/xmon/ppc.h
index d00f33dcf192..1d98b8dd134e 100644
--- a/arch/powerpc/xmon/ppc.h
+++ b/arch/powerpc/xmon/ppc.h
@@ -435,8 +435,6 @@ struct powerpc_macro
 extern const struct powerpc_macro powerpc_macros[];
 extern const int powerpc_num_macros;
 
-extern ppc_cpu_t ppc_parse_cpu (ppc_cpu_t, ppc_cpu_t *, const char *);
-
 static inline long
 ppc_optional_operand_value (const struct powerpc_operand *operand)
 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/9] powerpc/spufs: remove orphan declarations from spufs.h
  2022-09-13  7:50 [PATCH 0/9] Remove unused declarations for powerpc Gaosheng Cui
  2022-09-13  7:50 ` [PATCH 1/9] powerpc/xmon: remove unused ppc_parse_cpu() declaration Gaosheng Cui
@ 2022-09-13  7:50 ` Gaosheng Cui
  2022-09-13  7:50 ` [PATCH 3/9] powerpc: remove unused chrp_event_scan() declaration Gaosheng Cui
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: Gaosheng Cui @ 2022-09-13  7:50 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, geoff, jk, arnd, clg, aik,
	maciej.szmigiero, seanjc, jgg, willy, nick.child, bsingharora,
	michael, arnd.bergmann, paulus, benh, alistair, miltonm,
	Geert.Uytterhoeven, geoffrey.levand, yu.liu, scottwood, hollisb,
	avi, agraf, cuigaosheng1
  Cc: linuxppc-dev

Remove the following orphan declarations from spufs.h:
1. spufs_coredump_calls has been removed since
commit 48cad41f7ee7 ("[POWERPC] spufs: Combine
spufs_coredump_calls with spufs_calls").

2. spufs_coredump_num_notes has been removed since
commit 936d5bf1d7dc ("[POWERPC] spufs: Get rid of spufs_coredump_num_notes,
it's not needed if we NULL terminate").

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/powerpc/platforms/cell/spufs/spufs.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/powerpc/platforms/cell/spufs/spufs.h b/arch/powerpc/platforms/cell/spufs/spufs.h
index af048b6dd30a..84958487f696 100644
--- a/arch/powerpc/platforms/cell/spufs/spufs.h
+++ b/arch/powerpc/platforms/cell/spufs/spufs.h
@@ -333,7 +333,6 @@ void spufs_stop_callback(struct spu *spu, int irq);
 void spufs_mfc_callback(struct spu *spu);
 void spufs_dma_callback(struct spu *spu, int type);
 
-extern struct spu_coredump_calls spufs_coredump_calls;
 struct spufs_coredump_reader {
 	char *name;
 	ssize_t (*dump)(struct spu_context *ctx, struct coredump_params *cprm);
@@ -341,7 +340,6 @@ struct spufs_coredump_reader {
 	size_t size;
 };
 extern const struct spufs_coredump_reader spufs_coredump_read[];
-extern int spufs_coredump_num_notes;
 
 extern int spu_init_csa(struct spu_state *csa);
 extern void spu_fini_csa(struct spu_state *csa);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 3/9] powerpc: remove unused chrp_event_scan() declaration
  2022-09-13  7:50 [PATCH 0/9] Remove unused declarations for powerpc Gaosheng Cui
  2022-09-13  7:50 ` [PATCH 1/9] powerpc/xmon: remove unused ppc_parse_cpu() declaration Gaosheng Cui
  2022-09-13  7:50 ` [PATCH 2/9] powerpc/spufs: remove orphan declarations from spufs.h Gaosheng Cui
@ 2022-09-13  7:50 ` Gaosheng Cui
  2022-09-13  7:50 ` [PATCH 4/9] powerpc: remove unused udbg_init_debug_beat() declaration Gaosheng Cui
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: Gaosheng Cui @ 2022-09-13  7:50 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, geoff, jk, arnd, clg, aik,
	maciej.szmigiero, seanjc, jgg, willy, nick.child, bsingharora,
	michael, arnd.bergmann, paulus, benh, alistair, miltonm,
	Geert.Uytterhoeven, geoffrey.levand, yu.liu, scottwood, hollisb,
	avi, agraf, cuigaosheng1
  Cc: linuxppc-dev

chrp_event_scan() has been removed since
commit 3d541c4b7f6e ("powerpc/chrp: Use the same RTAS
daemon as pSeries"), so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/powerpc/platforms/chrp/chrp.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/powerpc/platforms/chrp/chrp.h b/arch/powerpc/platforms/chrp/chrp.h
index a5a7c338caf9..6ff4631d9db4 100644
--- a/arch/powerpc/platforms/chrp/chrp.h
+++ b/arch/powerpc/platforms/chrp/chrp.h
@@ -9,4 +9,3 @@ extern int chrp_set_rtc_time(struct rtc_time *);
 extern long chrp_time_init(void);
 
 extern void chrp_find_bridges(void);
-extern void chrp_event_scan(unsigned long);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 4/9] powerpc: remove unused udbg_init_debug_beat() declaration
  2022-09-13  7:50 [PATCH 0/9] Remove unused declarations for powerpc Gaosheng Cui
                   ` (2 preceding siblings ...)
  2022-09-13  7:50 ` [PATCH 3/9] powerpc: remove unused chrp_event_scan() declaration Gaosheng Cui
@ 2022-09-13  7:50 ` Gaosheng Cui
  2022-09-13  7:50 ` [PATCH 5/9] powerpc/mm: remove orphan declarations from mmu_context.h Gaosheng Cui
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: Gaosheng Cui @ 2022-09-13  7:50 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, geoff, jk, arnd, clg, aik,
	maciej.szmigiero, seanjc, jgg, willy, nick.child, bsingharora,
	michael, arnd.bergmann, paulus, benh, alistair, miltonm,
	Geert.Uytterhoeven, geoffrey.levand, yu.liu, scottwood, hollisb,
	avi, agraf, cuigaosheng1
  Cc: linuxppc-dev

udbg_init_debug_beat() has been removed since
commit bf4981a00636 ("powerpc: Remove the celleb support"),
so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/powerpc/include/asm/udbg.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/powerpc/include/asm/udbg.h b/arch/powerpc/include/asm/udbg.h
index b4aa0d88ce2c..524c2085070f 100644
--- a/arch/powerpc/include/asm/udbg.h
+++ b/arch/powerpc/include/asm/udbg.h
@@ -42,7 +42,6 @@ extern void __init udbg_init_maple_realmode(void);
 extern void __init udbg_init_pas_realmode(void);
 extern void __init udbg_init_rtas_panel(void);
 extern void __init udbg_init_rtas_console(void);
-extern void __init udbg_init_debug_beat(void);
 extern void __init udbg_init_btext(void);
 extern void __init udbg_init_44x_as1(void);
 extern void __init udbg_init_40x_realmode(void);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 5/9] powerpc/mm: remove orphan declarations from mmu_context.h
  2022-09-13  7:50 [PATCH 0/9] Remove unused declarations for powerpc Gaosheng Cui
                   ` (3 preceding siblings ...)
  2022-09-13  7:50 ` [PATCH 4/9] powerpc: remove unused udbg_init_debug_beat() declaration Gaosheng Cui
@ 2022-09-13  7:50 ` Gaosheng Cui
  2022-09-13  7:50 ` [PATCH 6/9] powerpc/powernv: remove orphan declarations from opal.h Gaosheng Cui
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: Gaosheng Cui @ 2022-09-13  7:50 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, geoff, jk, arnd, clg, aik,
	maciej.szmigiero, seanjc, jgg, willy, nick.child, bsingharora,
	michael, arnd.bergmann, paulus, benh, alistair, miltonm,
	Geert.Uytterhoeven, geoffrey.levand, yu.liu, scottwood, hollisb,
	avi, agraf, cuigaosheng1
  Cc: linuxppc-dev

Remove the following orphan declarations from mmu_context.h:
1. switch_cop() and drop_cop() have been removed since
commit 6ff4d3e96652 ("powerpc: Remove old unused icswx
based coprocessor support").

2. mm_iommu_cleanup() has been removed since
commit 4b6fad7097f8 ("powerpc/mm/iommu, vfio/spapr: Put
pages on VFIO container shutdown").

So remove the declarations for them from header file.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/powerpc/include/asm/mmu_context.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/powerpc/include/asm/mmu_context.h b/arch/powerpc/include/asm/mmu_context.h
index 3f25bd3e14eb..c1ea270bb848 100644
--- a/arch/powerpc/include/asm/mmu_context.h
+++ b/arch/powerpc/include/asm/mmu_context.h
@@ -31,7 +31,6 @@ extern long mm_iommu_newdev(struct mm_struct *mm, unsigned long ua,
 extern long mm_iommu_put(struct mm_struct *mm,
 		struct mm_iommu_table_group_mem_t *mem);
 extern void mm_iommu_init(struct mm_struct *mm);
-extern void mm_iommu_cleanup(struct mm_struct *mm);
 extern struct mm_iommu_table_group_mem_t *mm_iommu_lookup(struct mm_struct *mm,
 		unsigned long ua, unsigned long size);
 extern struct mm_iommu_table_group_mem_t *mm_iommu_get(struct mm_struct *mm,
@@ -117,7 +116,6 @@ static inline bool need_extra_context(struct mm_struct *mm, unsigned long ea)
 }
 #endif
 
-extern void switch_cop(struct mm_struct *next);
 extern int use_cop(unsigned long acop, struct mm_struct *mm);
 extern void drop_cop(unsigned long acop, struct mm_struct *mm);
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 6/9] powerpc/powernv: remove orphan declarations from opal.h
  2022-09-13  7:50 [PATCH 0/9] Remove unused declarations for powerpc Gaosheng Cui
                   ` (4 preceding siblings ...)
  2022-09-13  7:50 ` [PATCH 5/9] powerpc/mm: remove orphan declarations from mmu_context.h Gaosheng Cui
@ 2022-09-13  7:50 ` Gaosheng Cui
  2022-09-13  7:50 ` [PATCH 7/9] powerpc/sysdev: remove unused xics_ipi_dispatch() declaration Gaosheng Cui
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: Gaosheng Cui @ 2022-09-13  7:50 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, geoff, jk, arnd, clg, aik,
	maciej.szmigiero, seanjc, jgg, willy, nick.child, bsingharora,
	michael, arnd.bergmann, paulus, benh, alistair, miltonm,
	Geert.Uytterhoeven, geoffrey.levand, yu.liu, scottwood, hollisb,
	avi, agraf, cuigaosheng1
  Cc: linuxppc-dev

Remove the following orphan declarations from opal.h:
1. opal_notifier_register()
2. opal_notifier_unregister()
3. opal_notifier_update_evt()
4. opal_notifier_enable()
5. opal_notifier_disable()

They have been removed since commit 81f2f7ce4c5b ("opal:
Remove events notifier"), so remove them.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/powerpc/include/asm/opal.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h
index bfd3142cd0ba..726125a534de 100644
--- a/arch/powerpc/include/asm/opal.h
+++ b/arch/powerpc/include/asm/opal.h
@@ -324,16 +324,10 @@ extern int opal_flush_console(uint32_t vtermno);
 
 extern void hvc_opal_init_early(void);
 
-extern int opal_notifier_register(struct notifier_block *nb);
-extern int opal_notifier_unregister(struct notifier_block *nb);
-
 extern int opal_message_notifier_register(enum opal_msg_type msg_type,
 						struct notifier_block *nb);
 extern int opal_message_notifier_unregister(enum opal_msg_type msg_type,
 					    struct notifier_block *nb);
-extern void opal_notifier_enable(void);
-extern void opal_notifier_disable(void);
-extern void opal_notifier_update_evt(uint64_t evt_mask, uint64_t evt_val);
 
 extern int opal_async_get_token_interruptible(void);
 extern int opal_async_release_token(int token);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 7/9] powerpc/sysdev: remove unused xics_ipi_dispatch() declaration
  2022-09-13  7:50 [PATCH 0/9] Remove unused declarations for powerpc Gaosheng Cui
                   ` (5 preceding siblings ...)
  2022-09-13  7:50 ` [PATCH 6/9] powerpc/powernv: remove orphan declarations from opal.h Gaosheng Cui
@ 2022-09-13  7:50 ` Gaosheng Cui
  2022-09-13  7:50 ` [PATCH 8/9] powerpc/ps3: remove orphan declarations from ps3av.h Gaosheng Cui
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: Gaosheng Cui @ 2022-09-13  7:50 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, geoff, jk, arnd, clg, aik,
	maciej.szmigiero, seanjc, jgg, willy, nick.child, bsingharora,
	michael, arnd.bergmann, paulus, benh, alistair, miltonm,
	Geert.Uytterhoeven, geoffrey.levand, yu.liu, scottwood, hollisb,
	avi, agraf, cuigaosheng1
  Cc: linuxppc-dev

xics_ipi_dispatch() has been removed since
commit 23d72bfd8f9f ("powerpc: Consolidate ipi message mux
and demux"), so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/powerpc/include/asm/xics.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/powerpc/include/asm/xics.h b/arch/powerpc/include/asm/xics.h
index e2e704eca5f6..89090485bec1 100644
--- a/arch/powerpc/include/asm/xics.h
+++ b/arch/powerpc/include/asm/xics.h
@@ -159,7 +159,6 @@ extern void xics_setup_cpu(void);
 extern void xics_update_irq_servers(void);
 extern void xics_set_cpu_giq(unsigned int gserver, unsigned int join);
 extern void xics_mask_unknown_vec(unsigned int vec);
-extern irqreturn_t xics_ipi_dispatch(int cpu);
 extern void xics_smp_probe(void);
 extern void xics_register_ics(struct ics *ics);
 extern void xics_teardown_cpu(void);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 8/9] powerpc/ps3: remove orphan declarations from ps3av.h
  2022-09-13  7:50 [PATCH 0/9] Remove unused declarations for powerpc Gaosheng Cui
                   ` (6 preceding siblings ...)
  2022-09-13  7:50 ` [PATCH 7/9] powerpc/sysdev: remove unused xics_ipi_dispatch() declaration Gaosheng Cui
@ 2022-09-13  7:50 ` Gaosheng Cui
  2022-09-14 16:29   ` Geoff Levand
  2022-09-13  7:50 ` [PATCH 9/9] KVM: PPC: remove orphan declarations from kvm_ppc.h Gaosheng Cui
  2022-09-23 10:57 ` [PATCH 0/9] Remove unused declarations for powerpc Michael Ellerman
  9 siblings, 1 reply; 12+ messages in thread
From: Gaosheng Cui @ 2022-09-13  7:50 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, geoff, jk, arnd, clg, aik,
	maciej.szmigiero, seanjc, jgg, willy, nick.child, bsingharora,
	michael, arnd.bergmann, paulus, benh, alistair, miltonm,
	Geert.Uytterhoeven, geoffrey.levand, yu.liu, scottwood, hollisb,
	avi, agraf, cuigaosheng1
  Cc: linuxppc-dev

Remove the following orphan declarations from ps3av.h:
1. ps3av_dev_open()
2. ps3av_dev_close()

They have been removed since commit 13a5e30cf740 ("[POWERPC] PS3:
Rework AV settings driver"), so remove them.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/powerpc/include/asm/ps3av.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/powerpc/include/asm/ps3av.h b/arch/powerpc/include/asm/ps3av.h
index 82db78fc169d..c8b0f2ffcd35 100644
--- a/arch/powerpc/include/asm/ps3av.h
+++ b/arch/powerpc/include/asm/ps3av.h
@@ -726,6 +726,4 @@ extern int ps3av_video_mode2res(u32, u32 *, u32 *);
 extern int ps3av_video_mute(int);
 extern int ps3av_audio_mute(int);
 extern int ps3av_audio_mute_analog(int);
-extern int ps3av_dev_open(void);
-extern int ps3av_dev_close(void);
 #endif	/* _ASM_POWERPC_PS3AV_H_ */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 9/9] KVM: PPC: remove orphan declarations from kvm_ppc.h
  2022-09-13  7:50 [PATCH 0/9] Remove unused declarations for powerpc Gaosheng Cui
                   ` (7 preceding siblings ...)
  2022-09-13  7:50 ` [PATCH 8/9] powerpc/ps3: remove orphan declarations from ps3av.h Gaosheng Cui
@ 2022-09-13  7:50 ` Gaosheng Cui
  2022-09-23 10:57 ` [PATCH 0/9] Remove unused declarations for powerpc Michael Ellerman
  9 siblings, 0 replies; 12+ messages in thread
From: Gaosheng Cui @ 2022-09-13  7:50 UTC (permalink / raw)
  To: mpe, npiggin, christophe.leroy, geoff, jk, arnd, clg, aik,
	maciej.szmigiero, seanjc, jgg, willy, nick.child, bsingharora,
	michael, arnd.bergmann, paulus, benh, alistair, miltonm,
	Geert.Uytterhoeven, geoffrey.levand, yu.liu, scottwood, hollisb,
	avi, agraf, cuigaosheng1
  Cc: linuxppc-dev

Remove the following orphan declarations from kvm_ppc.h:

1. kvmppc_mmu_priv_switch() has been removed since
commit dd9ebf1f9435 ("KVM: PPC: e500: Add shadow PID
support").
2. kvmppc_core_destroy_mmu() has been removed since
commit ecc0981ff07c ("KVM: ppc: cosmetic changes to mmu
hook names").
3. kvmppc_prepare_vrma() has been removed since
commit aa04b4cc5be6 ("KVM: PPC: Allocate RMAs (Real Mode
Areas) at boot for use by guests").

So remove the declarations for them from header file.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 arch/powerpc/include/asm/kvm_ppc.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/powerpc/include/asm/kvm_ppc.h b/arch/powerpc/include/asm/kvm_ppc.h
index 9f625af3b65b..bfacf12784dd 100644
--- a/arch/powerpc/include/asm/kvm_ppc.h
+++ b/arch/powerpc/include/asm/kvm_ppc.h
@@ -104,7 +104,6 @@ extern void kvmppc_subarch_vcpu_uninit(struct kvm_vcpu *vcpu);
 
 extern void kvmppc_mmu_map(struct kvm_vcpu *vcpu, u64 gvaddr, gpa_t gpaddr,
                            unsigned int gtlb_idx);
-extern void kvmppc_mmu_priv_switch(struct kvm_vcpu *vcpu, int usermode);
 extern void kvmppc_mmu_switch_pid(struct kvm_vcpu *vcpu, u32 pid);
 extern int kvmppc_mmu_dtlb_index(struct kvm_vcpu *vcpu, gva_t eaddr);
 extern int kvmppc_mmu_itlb_index(struct kvm_vcpu *vcpu, gva_t eaddr);
@@ -153,7 +152,6 @@ extern int kvmppc_core_check_requests(struct kvm_vcpu *vcpu);
 extern int kvmppc_booke_init(void);
 extern void kvmppc_booke_exit(void);
 
-extern void kvmppc_core_destroy_mmu(struct kvm_vcpu *vcpu);
 extern int kvmppc_kvm_pv(struct kvm_vcpu *vcpu);
 extern void kvmppc_map_magic(struct kvm_vcpu *vcpu);
 
@@ -162,8 +160,6 @@ extern void kvmppc_set_hpt(struct kvm *kvm, struct kvm_hpt_info *info);
 extern long kvmppc_alloc_reset_hpt(struct kvm *kvm, int order);
 extern void kvmppc_free_hpt(struct kvm_hpt_info *info);
 extern void kvmppc_rmap_reset(struct kvm *kvm);
-extern long kvmppc_prepare_vrma(struct kvm *kvm,
-				struct kvm_userspace_memory_region *mem);
 extern void kvmppc_map_vrma(struct kvm_vcpu *vcpu,
 			struct kvm_memory_slot *memslot, unsigned long porder);
 extern int kvmppc_pseries_do_hcall(struct kvm_vcpu *vcpu);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH 8/9] powerpc/ps3: remove orphan declarations from ps3av.h
  2022-09-13  7:50 ` [PATCH 8/9] powerpc/ps3: remove orphan declarations from ps3av.h Gaosheng Cui
@ 2022-09-14 16:29   ` Geoff Levand
  0 siblings, 0 replies; 12+ messages in thread
From: Geoff Levand @ 2022-09-14 16:29 UTC (permalink / raw)
  To: Gaosheng Cui, mpe, npiggin, christophe.leroy, jk, arnd, clg, aik,
	maciej.szmigiero, seanjc, jgg, willy, nick.child, bsingharora,
	michael, arnd.bergmann, paulus, benh, alistair, miltonm,
	Geert.Uytterhoeven, geoffrey.levand, yu.liu, scottwood, hollisb,
	avi, agraf
  Cc: linuxppc-dev

Hi Gaosheng,

On 9/13/22 00:50, Gaosheng Cui wrote:
> Remove the following orphan declarations from ps3av.h:
> 1. ps3av_dev_open()
> 2. ps3av_dev_close()
> 
> They have been removed since commit 13a5e30cf740 ("[POWERPC] PS3:
> Rework AV settings driver"), so remove them.

I did a test build with this patch applied to v6.0-rc5 and had no errors.

Acked-by: Geoff Levand <geoff@infradead.org>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 0/9] Remove unused declarations for powerpc
  2022-09-13  7:50 [PATCH 0/9] Remove unused declarations for powerpc Gaosheng Cui
                   ` (8 preceding siblings ...)
  2022-09-13  7:50 ` [PATCH 9/9] KVM: PPC: remove orphan declarations from kvm_ppc.h Gaosheng Cui
@ 2022-09-23 10:57 ` Michael Ellerman
  9 siblings, 0 replies; 12+ messages in thread
From: Michael Ellerman @ 2022-09-23 10:57 UTC (permalink / raw)
  To: Gaosheng Cui; +Cc: linuxppc-dev

On Tue, 13 Sep 2022 15:50:20 +0800, Gaosheng Cui wrote:
> This series contains a few cleanup patches, to remove unused
> declarations which have been removed. Thanks!
> 
> Gaosheng Cui (9):
>   powerpc/xmon: remove unused ppc_parse_cpu() declaration
>   powerpc/spufs: remove orphan declarations from spufs.h
>   powerpc: remove unused chrp_event_scan() declaration
>   powerpc: remove unused udbg_init_debug_beat() declaration
>   powerpc/mm: remove orphan declarations from mmu_context.h
>   powerpc/powernv: remove orphan declarations from opal.h
>   powerpc/sysdev: remove unused xics_ipi_dispatch() declaration
>   powerpc/ps3: remove orphan declarations from ps3av.h
>   KVM: PPC: remove orphan declarations from kvm_ppc.h
> 
> [...]

Applied to powerpc/next.

[1/9] powerpc/xmon: remove unused ppc_parse_cpu() declaration
      https://git.kernel.org/powerpc/c/edd100634a5eb99cf97868c419bdf44d44355c4f
[2/9] powerpc/spufs: remove orphan declarations from spufs.h
      https://git.kernel.org/powerpc/c/cf78ddd3a1040a84bf882eecea44626dbad450c4
[3/9] powerpc: remove unused chrp_event_scan() declaration
      https://git.kernel.org/powerpc/c/29e1eb9169a9c73985ed15361520900ce1cef1d4
[4/9] powerpc: remove unused udbg_init_debug_beat() declaration
      https://git.kernel.org/powerpc/c/b5a472ad81ba23327ef11ca5b4ba9fd8ed38e45e
[5/9] powerpc/mm: remove orphan declarations from mmu_context.h
      https://git.kernel.org/powerpc/c/d24b8f01fe7b848f88ff0a3204a674a092f365d0
[6/9] powerpc/powernv: remove orphan declarations from opal.h
      https://git.kernel.org/powerpc/c/77d30535816e90ff6a4466210c403a6b8b42a0a5
[7/9] powerpc/sysdev: remove unused xics_ipi_dispatch() declaration
      https://git.kernel.org/powerpc/c/3abed8acfe95046b27117f48d52dccd2ea82a322
[8/9] powerpc/ps3: remove orphan declarations from ps3av.h
      https://git.kernel.org/powerpc/c/b47f0024f990803f36e6a06f82e9d0dbe8424c26
[9/9] KVM: PPC: remove orphan declarations from kvm_ppc.h
      https://git.kernel.org/powerpc/c/3d7a198cfdb47405cfb4a3ea523876569fe341e6

cheers

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-09-23 11:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13  7:50 [PATCH 0/9] Remove unused declarations for powerpc Gaosheng Cui
2022-09-13  7:50 ` [PATCH 1/9] powerpc/xmon: remove unused ppc_parse_cpu() declaration Gaosheng Cui
2022-09-13  7:50 ` [PATCH 2/9] powerpc/spufs: remove orphan declarations from spufs.h Gaosheng Cui
2022-09-13  7:50 ` [PATCH 3/9] powerpc: remove unused chrp_event_scan() declaration Gaosheng Cui
2022-09-13  7:50 ` [PATCH 4/9] powerpc: remove unused udbg_init_debug_beat() declaration Gaosheng Cui
2022-09-13  7:50 ` [PATCH 5/9] powerpc/mm: remove orphan declarations from mmu_context.h Gaosheng Cui
2022-09-13  7:50 ` [PATCH 6/9] powerpc/powernv: remove orphan declarations from opal.h Gaosheng Cui
2022-09-13  7:50 ` [PATCH 7/9] powerpc/sysdev: remove unused xics_ipi_dispatch() declaration Gaosheng Cui
2022-09-13  7:50 ` [PATCH 8/9] powerpc/ps3: remove orphan declarations from ps3av.h Gaosheng Cui
2022-09-14 16:29   ` Geoff Levand
2022-09-13  7:50 ` [PATCH 9/9] KVM: PPC: remove orphan declarations from kvm_ppc.h Gaosheng Cui
2022-09-23 10:57 ` [PATCH 0/9] Remove unused declarations for powerpc Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.