From: Zenghui Yu <zenghui.yu@linux.dev>
To: kvm@vger.kernel.org, loongarch@lists.linux.dev
Cc: zhaotianrui@loongson.cn, maobibo@loongson.cn,
chenhuacai@kernel.org, Zenghui Yu <zenghui.yu@linux.dev>
Subject: [PATCH] LoongArch: KVM: Remove unused macros and declaration
Date: Sun, 15 Nov 2026 23:12:04 +0800 [thread overview]
Message-ID: <20261115151204.82817-1-zenghui.yu@linux.dev> (raw)
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
reply other threads:[~2026-11-15 15:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261115151204.82817-1-zenghui.yu@linux.dev \
--to=zenghui.yu@linux.dev \
--cc=chenhuacai@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=maobibo@loongson.cn \
--cc=zhaotianrui@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox