From nobody Sun Apr 10 18:34:07 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6475E1A8285E; Sun, 10 Apr 2022 18:34:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kc0xr0djqz4j6h; Sun, 10 Apr 2022 18:34:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649615648; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B9U2XQUSL639g7TOqIfZ3fKlC0iSCi3ZpDMQme8MuN0=; b=Iic9sO0PQLmOEBSXNTSi/oVP0+QE+ooFFAIMENTpZDMiZS/tt8hjVJ74+nqEBiYkVsmSpD T/QOP7IrXuowhdy57GWSx7L5jzYob5BrX4wQOqjI5v2KMfgmLABV8oFqLK45GNIxNxGyr/ PRdNkpMZbHd9rBiSbHt8+huru032onp/xjxvzi82PjO5QJSNgDd8rdkdV6e1cXopwxCdnQ rB8r5iWmrQA1qpGp8fisrMSp0ofNsgHaJUS2Bi53jVqdW/Lgy15sAarMV4h4R0/JVPmb/R f4n2lZgx/G8olofAJiWPDot/MCKgx+b7fuQIUbSHq32daxy01aj43SocXsAFHw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D7FB713AD3; Sun, 10 Apr 2022 18:34:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23AIY7i7074911; Sun, 10 Apr 2022 18:34:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23AIY7ku074910; Sun, 10 Apr 2022 18:34:07 GMT (envelope-from git) Date: Sun, 10 Apr 2022 18:34:07 GMT Message-Id: <202204101834.23AIY7ku074910@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Robert Wing Subject: git: 5c272efaba29 - main - vmm: fix set but not used warnings List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5c272efaba291f744191dca86f04418bfe90b222 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649615648; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B9U2XQUSL639g7TOqIfZ3fKlC0iSCi3ZpDMQme8MuN0=; b=woVizZTB5bLocaGNnL/s68GYSz2KchNdvQP5nhTbJ54dv4MGNTWILjHdFRwxXg8kHRjBwG NEAi5vwUSZgfH+4ro0gW8zuPfh+tlpgwC6dRw3USPYJz2jyb2FaSI+0wrCSLnRtB3EtZq5 bPGAP6d/k9smnEwo41o9d31g10gR6PMbIDL3OmTnaeCYjLAyea8MRNUN5KAKIC/WSIdLNh 2BP6oGIIFSEFNiQ+iP5xWuMvKGope+r84J+g5R8tJAF6UMN9Ce1aPr5QToTaCnB9J+rHKT lavwMoGJAA2gPM3ytPDHLrfDXE4cVaycbLIUvWwHEa6w8PMw2a0fbO4KIrkS3Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649615648; a=rsa-sha256; cv=none; b=PW+/p7Hk3CqAuGRR+IcZXwHDmx7qyzhdr7Qm0ZxZSmH68DW4fEB4zt3Q7y6Vyc7E9Ql1Yz +Hu6NiD4a05PBjBALst6vbg3mTNzYvttQOZK70rcIILQ1EKkQf6Rl5YP3XSy/ZQ4smFuLZ RuWTLYQQWctxIgDeAOYxiEgKi2/cg7SqReSapJmBV4INxos8+F/8Uucctjg0k7D//CQ2NZ xmz9plACPQHpY7YkHGmH6blEKdAXaXgFNym6l+fjeD/IGqltfHhl/1WQnigsmCpJ/YK0Z4 +FA1gnHW38pTpOwxkwlt2p79SVQ+9y7qTqm1ZXSyqGGwdEkD6nJMh+isMCuYdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by rew: URL: https://cgit.FreeBSD.org/src/commit/?id=5c272efaba291f744191dca86f04418bfe90b222 commit 5c272efaba291f744191dca86f04418bfe90b222 Author: Robert Wing AuthorDate: 2022-04-10 18:30:11 +0000 Commit: Robert Wing 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;