git: cf337d24c961 - stable/15 - vmm: Remove some unused macros
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Oct 2025 12:50:29 UTC
The branch stable/15 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=cf337d24c961d2d10fcf53e2762325237e563d39
commit cf337d24c961d2d10fcf53e2762325237e563d39
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-10-10 13:22:16 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-10-29 12:46:50 +0000
vmm: Remove some unused macros
No functional change intended.
Reviewed by: corvink
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D53013
(cherry picked from commit 642c763a9ad14cbe70596cabc16f73b9ca99de57)
---
sys/arm64/vmm/vmm.c | 1 -
sys/riscv/vmm/vmm.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/sys/arm64/vmm/vmm.c b/sys/arm64/vmm/vmm.c
index 02c5ae2c0223..aeda689f3b1a 100644
--- a/sys/arm64/vmm/vmm.c
+++ b/sys/arm64/vmm/vmm.c
@@ -88,7 +88,6 @@ struct vcpu {
struct vfpstate *guestfpu; /* (a,i) guest fpu state */
};
-#define vcpu_lock_initialized(v) mtx_initialized(&((v)->mtx))
#define vcpu_lock_init(v) mtx_init(&((v)->mtx), "vcpu lock", 0, MTX_SPIN)
#define vcpu_lock_destroy(v) mtx_destroy(&((v)->mtx))
#define vcpu_lock(v) mtx_lock_spin(&((v)->mtx))
diff --git a/sys/riscv/vmm/vmm.c b/sys/riscv/vmm/vmm.c
index c6cca7cbdfc6..790dcc576507 100644
--- a/sys/riscv/vmm/vmm.c
+++ b/sys/riscv/vmm/vmm.c
@@ -92,7 +92,6 @@ struct vcpu {
struct fpreg *guestfpu; /* (a,i) guest fpu state */
};
-#define vcpu_lock_initialized(v) mtx_initialized(&((v)->mtx))
#define vcpu_lock_init(v) mtx_init(&((v)->mtx), "vcpu lock", 0, MTX_SPIN)
#define vcpu_lock_destroy(v) mtx_destroy(&((v)->mtx))
#define vcpu_lock(v) mtx_lock_spin(&((v)->mtx))