git: d487cba33d77 - main - vmm: Fix non-INVARIANTS build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Nov 2022 21:21:17 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=d487cba33d777efb9f6f7d7967ad2eaa629bcb90
commit d487cba33d777efb9f6f7d7967ad2eaa629bcb90
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-11-18 21:20:13 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-11-18 21:20:13 +0000
vmm: Fix non-INVARIANTS build
Reported by: O. Hartmann <freebsd@walstatt-de.de>
Reviewed by: jhb
Fixes: 58eefc67a1cf
Differential Revision: https://reviews.freebsd.org/D37444
---
sys/amd64/vmm/intel/vmx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/amd64/vmm/intel/vmx.c b/sys/amd64/vmm/intel/vmx.c
index 942caa6c58f8..b7b933eb9b18 100644
--- a/sys/amd64/vmm/intel/vmx.c
+++ b/sys/amd64/vmm/intel/vmx.c
@@ -1020,7 +1020,7 @@ vmx_setup_cr_shadow(int which, struct vmcs *vmcs, uint32_t initial)
static void *
vmx_init(struct vm *vm, pmap_t pmap)
{
- int error;
+ int error __diagused;
struct vmx *vmx;
vmx = malloc(sizeof(struct vmx), M_VMX, M_WAITOK | M_ZERO);