git: 5c272efaba29 - main - vmm: fix set but not used warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Apr 2022 18:34:07 UTC
The branch main has been updated by rew: URL: https://cgit.FreeBSD.org/src/commit/?id=5c272efaba291f744191dca86f04418bfe90b222 commit 5c272efaba291f744191dca86f04418bfe90b222 Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2022-04-10 18:30:11 +0000 Commit: Robert Wing <rew@FreeBSD.org> CommitDate: 2022-04-10 18:30:11 +0000 vmm: fix set but not used warnings --- sys/amd64/vmm/intel/vmx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/amd64/vmm/intel/vmx.c b/sys/amd64/vmm/intel/vmx.c index e7ced1b2c3fa..72ff227587aa 100644 --- a/sys/amd64/vmm/intel/vmx.c +++ b/sys/amd64/vmm/intel/vmx.c @@ -1389,7 +1389,7 @@ vmx_set_tsc_offset(struct vmx *vmx, int vcpu, uint64_t offset) static void vmx_inject_nmi(struct vmx *vmx, int vcpu) { - uint32_t gi, info; + uint32_t gi __diagused, info; gi = vmcs_read(VMCS_GUEST_INTERRUPTIBILITY); KASSERT((gi & NMI_BLOCKING) == 0, ("vmx_inject_nmi: invalid guest " @@ -1634,7 +1634,7 @@ vmx_clear_nmi_blocking(struct vmx *vmx, int vcpuid) static void vmx_assert_nmi_blocking(struct vmx *vmx, int vcpuid) { - uint32_t gi; + uint32_t gi __diagused; gi = vmcs_read(VMCS_GUEST_INTERRUPTIBILITY); KASSERT(gi & VMCS_INTERRUPTIBILITY_NMI_BLOCKING, @@ -1958,7 +1958,7 @@ static uint64_t inout_str_index(struct vmx *vmx, int vcpuid, int in) { uint64_t val; - int error; + int error __diagused; enum vm_reg_name reg; reg = in ? VM_REG_GUEST_RDI : VM_REG_GUEST_RSI; @@ -1971,7 +1971,7 @@ static uint64_t inout_str_count(struct vmx *vmx, int vcpuid, int rep) { uint64_t val; - int error; + int error __diagused; if (rep) { error = vmx_getreg(vmx, vcpuid, VM_REG_GUEST_RCX, &val); @@ -2004,7 +2004,7 @@ static void inout_str_seginfo(struct vmx *vmx, int vcpuid, uint32_t inst_info, int in, struct vm_inout_str *vis) { - int error, s; + int error __diagused, s; if (in) { vis->seg_name = VM_REG_GUEST_ES; @@ -3860,7 +3860,7 @@ vmx_enable_x2apic_mode_vid(struct vlapic *vlapic) struct vmx *vmx; struct vmcs *vmcs; uint32_t proc_ctls2; - int vcpuid, error; + int vcpuid, error __diagused; vcpuid = vlapic->vcpuid; vmx = ((struct vlapic_vtx *)vlapic)->vmx;