[RFC PATCH v1 24/30] KVM: arm64: remove unused functions

Fuad Tabba tabba at google.com
Fri Sep 24 05:53:53 PDT 2021


__vcpu_write_spsr*() functions are not used anymore.

Signed-off-by: Fuad Tabba <tabba at google.com>
---
 arch/arm64/kvm/hyp/exception.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/arch/arm64/kvm/hyp/exception.c b/arch/arm64/kvm/hyp/exception.c
index bb0bc1f5568c..fdfc809f61b8 100644
--- a/arch/arm64/kvm/hyp/exception.c
+++ b/arch/arm64/kvm/hyp/exception.c
@@ -67,21 +67,6 @@ static inline void __vcpu_write_sys_reg(struct kvm_vcpu *vcpu, u64 val, int reg)
 	__ctxt_write_sys_reg(&vcpu_ctxt(vcpu), val, reg);
 }
 
-static void __vcpu_write_spsr(struct kvm_vcpu *vcpu, u64 val)
-{
-	__ctxt_write_spsr(&vcpu_ctxt(vcpu), val);
-}
-
-static void __vcpu_write_spsr_abt(struct kvm_vcpu *vcpu, u64 val)
-{
-	__ctxt_write_spsr_abt(&vcpu_ctxt(vcpu), val);
-}
-
-static void __vcpu_write_spsr_und(struct kvm_vcpu *vcpu, u64 val)
-{
-	__ctxt_write_spsr_und(&vcpu_ctxt(vcpu), val);
-}
-
 /*
  * This performs the exception entry at a given EL (@target_mode), stashing PC
  * and PSTATE into ELR and SPSR respectively, and compute the new PC/PSTATE.
-- 
2.33.0.685.g46640cef36-goog




More information about the linux-arm-kernel mailing list