All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] LoongArch: KVM: Remove unused macros and declaration
@ 2026-11-15 15:12 Zenghui Yu
  0 siblings, 0 replies; only message in thread
From: Zenghui Yu @ 2026-11-15 15:12 UTC (permalink / raw)
  To: kvm, loongarch; +Cc: zhaotianrui, maobibo, chenhuacai, Zenghui Yu

The KVM_LOONGSON_IRQ_* macros and kvm_restore_fcsr() declaration are never
used anywhere, drop them.

Signed-off-by: Zenghui Yu <zenghui.yu@linux.dev>
---
 arch/loongarch/include/asm/kvm_vcpu.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/arch/loongarch/include/asm/kvm_vcpu.h b/arch/loongarch/include/asm/kvm_vcpu.h
index a70a32103523..439731f715aa 100644
--- a/arch/loongarch/include/asm/kvm_vcpu.h
+++ b/arch/loongarch/include/asm/kvm_vcpu.h
@@ -44,14 +44,6 @@
 
 #define MNSEC_PER_SEC			(NSEC_PER_SEC >> 20)
 
-/* KVM_IRQ_LINE irq field index values */
-#define KVM_LOONGSON_IRQ_TYPE_SHIFT	24
-#define KVM_LOONGSON_IRQ_TYPE_MASK	0xff
-#define KVM_LOONGSON_IRQ_VCPU_SHIFT	16
-#define KVM_LOONGSON_IRQ_VCPU_MASK	0xff
-#define KVM_LOONGSON_IRQ_NUM_SHIFT	0
-#define KVM_LOONGSON_IRQ_NUM_MASK	0xffff
-
 typedef union loongarch_instruction  larch_inst;
 typedef int (*exit_handle_fn)(struct kvm_vcpu *, int);
 
@@ -70,7 +62,6 @@ void kvm_own_fpu(struct kvm_vcpu *vcpu);
 void kvm_lose_fpu(struct kvm_vcpu *vcpu);
 void kvm_save_fpu(struct loongarch_fpu *fpu);
 void kvm_restore_fpu(struct loongarch_fpu *fpu);
-void kvm_restore_fcsr(struct loongarch_fpu *fpu);
 
 #ifdef CONFIG_CPU_HAS_LSX
 int kvm_own_lsx(struct kvm_vcpu *vcpu);
-- 
2.56.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-15 15:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-15 15:12 [PATCH] LoongArch: KVM: Remove unused macros and declaration Zenghui Yu

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.