From 019008ebf5893942a5ef33cb1e765363c9df8e37 Mon Sep 17 00:00:00 2001 From: Neel Natu Date: Sun, 20 Jul 2014 16:34:35 +0000 Subject: [PATCH] Fix build without INVARIANTS defined by getting rid of unused variable 'exc'. Reported by: adrian, stefanf --- sys/amd64/vmm/intel/vmx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/amd64/vmm/intel/vmx.c b/sys/amd64/vmm/intel/vmx.c index 22732a276e8d..4f82ea614c93 100644 --- a/sys/amd64/vmm/intel/vmx.c +++ b/sys/amd64/vmm/intel/vmx.c @@ -1211,7 +1211,6 @@ vmx_inject_nmi(struct vmx *vmx, int vcpu) static void vmx_inject_interrupts(struct vmx *vmx, int vcpu, struct vlapic *vlapic) { - struct vm_exception exc; int vector, need_nmi_exiting, extint_pending; uint64_t rflags, entryinfo; uint32_t gi, info; @@ -1222,7 +1221,7 @@ vmx_inject_interrupts(struct vmx *vmx, int vcpu, struct vlapic *vlapic) info = vmcs_read(VMCS_ENTRY_INTR_INFO); KASSERT((info & VMCS_INTR_VALID) == 0, ("%s: cannot inject " - "pending exception %d: %#x", __func__, exc.vector, info)); + "pending exception: %#lx/%#x", __func__, entryinfo, info)); info = entryinfo; vector = info & 0xff;