From nobody Thu Jan 26 19:28:36 2023 X-Original-To: dev-commits-src-branches@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 4P2rNN2CDQz3bTtV; Thu, 26 Jan 2023 19:28:36 +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 4P2rNN1mf8z4LT3; Thu, 26 Jan 2023 19:28:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674761316; 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=R+khfusLJ5wb32+OrL4koZJJosS7bhIwe7qlPthAUFI=; b=AqShO6ZV0snc9vr2ILb0kTfccpLknu0yj6Zye4aMlEzYKqjKpIqRrGmaigPtatmuX1dBSt I50YJb0YwLoS4hMZ4x8Brd65JgP//sdypPnr7uaq8sj0AKsv/Tm7CANkMfWeSpvkHHpKJC GIIQUGdkzPjZpO4ecNR5lQeoXjTiw+NLJ5g7fC473ir0WhPlxNFrV8U9I8ELbyX1mdZoD4 SsQmqRfKIz9jHOea2TVXSNWAVlC0HlNvr5XM7swqcUe+tOqbEM2m34iy20EkGGXaL0OEuc h8oriNgBrP5lTobY2g5oBRMb/9VXENwe6da7rOdp7owJeTEoZn5Rf2zRdQvpRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674761316; 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=R+khfusLJ5wb32+OrL4koZJJosS7bhIwe7qlPthAUFI=; b=QHP7gj7oGLp0ZYEl9QY4+aDkZdHZ0iegG8d67His/rjOxWNWnbtoNqtyVrK3+z59HManm1 SwYinQxTBO2x6yYt/aGMo6QWyfwUUXeijzZ5JhPum1VbXpjagjhbDHncFYI5Y/tKbglY1o cUYxl/AzVvm6ZZasEeNmNT+Va3LaULXO8DQ4goo86bEfNN7cvYOXy2KRnSAzbAMBUccb/3 Rexr7Ccr4IVLUJYeQfdIynM+hiINptYhcjoWS29ARNLjeJ4DgUpddrClmMBGkMjpRCrjGw yvrt9qoOOeFF/LXUlUXf+XGsboZC2olQdFhW2ERPhTLbTIHf7fzPh+yTaleZuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674761316; a=rsa-sha256; cv=none; b=tNSJY7wx6skJEy5rZAoNhCMLVAOQq91NrkxPQfn0/Q/tK1MB2F0zCAXNGc/Tqn6UJgSnU+ r54fmGoiXaHL2R8mzPWdlmmtjybOST4eDFHBOkzXvPw+Tv63bAlw2ElBmr0GOAvTL3vYJG kGPcLd/VxcDoHfN+9TtckkczRVDZ16Am3igXwI8CoXkNAb4A5NQzrDquPUV8JTppBkjocV O5rV/OYvB1Vb63Xz8GNhtaRewk2hb5I4agvq9KY+wcBrZKWOwSFBmcGioGSjQ37v2rBF5t 3X6DtE7bO5adlSLLoQwSB6dg9Bvk3d18wFO9kT+rB1Nv8x218Cte3ne6WvUSoA== 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 4P2rNN0mwXzh8Q; Thu, 26 Jan 2023 19:28:36 +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 30QJSalw078693; Thu, 26 Jan 2023 19:28:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30QJSaYY078692; Thu, 26 Jan 2023 19:28:36 GMT (envelope-from git) Date: Thu, 26 Jan 2023 19:28:36 GMT Message-Id: <202301261928.30QJSaYY078692@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 861c6ae8f009 - stable/13 - vmm: fix "set but not used" warnings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 861c6ae8f009094c2ecf1138fa2f78d85bccdba4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=861c6ae8f009094c2ecf1138fa2f78d85bccdba4 commit 861c6ae8f009094c2ecf1138fa2f78d85bccdba4 Author: Robert Wing AuthorDate: 2022-02-28 23:55:37 +0000 Commit: John Baldwin CommitDate: 2023-01-26 19:26:14 +0000 vmm: fix "set but not used" warnings (cherry picked from commit 39d87a023567f633c6990ac7fcc3a20691a1efd6) --- sys/amd64/vmm/intel/vmcs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/vmm/intel/vmcs.h b/sys/amd64/vmm/intel/vmcs.h index 8aa7b1e8fc08..5c5214c65609 100644 --- a/sys/amd64/vmm/intel/vmcs.h +++ b/sys/amd64/vmm/intel/vmcs.h @@ -76,7 +76,7 @@ int vmcs_snapshot_any(struct vmcs *vmcs, int running, int ident, static __inline uint64_t vmcs_read(uint32_t encoding) { - int error; + int error __diagused; uint64_t val; error = vmread(encoding, &val); @@ -87,7 +87,7 @@ vmcs_read(uint32_t encoding) static __inline void vmcs_write(uint32_t encoding, uint64_t val) { - int error; + int error __diagused; error = vmwrite(encoding, val); KASSERT(error == 0, ("vmcs_write(%u) error %d", encoding, error));