From nobody Sun Apr 10 18:34:11 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 056A41A82E1B; Sun, 10 Apr 2022 18:34:12 +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 4Kc0xv3HrCz4jRt; Sun, 10 Apr 2022 18:34:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649615651; 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=fxV/hdQyQoyx+59ewqM954G2YbNY2i8pKWCfe9hcCRM=; b=bmtRB0UWZ4kMI/SW6sTESFVt4hrhcBLmuGKuzdvWvYT+KNKxw++R8kbhipTIKkxYNDCypR 3bY9ScAgH8MSLCWZronH2H14VrDDHGPkgLE1NGW8hlGI0OsAKHdDxq98J8whfEV9dMEciC 0CK2VCt+4UXEkxmaa2O2M9Hy3y4rFMsaxCrCG4DPwFfTxe7VtVdeXOw03y3htiyiL1woXy 3Qncu0Vplo5HsLlZKw0kYPo4koPEmv06ZN44Patb6H7QkdRO/Fya8VvoT58+GIUjX1FnVV NMKNxpzbnRyySbQWLJ8eSOydVsXw9W/wUL+ER4wOh2YyLobGxRMai2uUxyDR/A== 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 4537C13BA2; Sun, 10 Apr 2022 18:34:11 +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 23AIYBoD074989; Sun, 10 Apr 2022 18:34:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23AIYBPn074988; Sun, 10 Apr 2022 18:34:11 GMT (envelope-from git) Date: Sun, 10 Apr 2022 18:34:11 GMT Message-Id: <202204101834.23AIYBPn074988@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: 5a17f489d584 - main - vmm: fix set but not used warning 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: 5a17f489d5848085307e1d5fa7ca142694b4946b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649615651; 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=fxV/hdQyQoyx+59ewqM954G2YbNY2i8pKWCfe9hcCRM=; b=iDNOJElcMq4xlmaT9h2opB2rRzBdOq2hfZyhKHR0Ygyiz43Xvf2c1DsFBVgzCtuVW3Flkt ZkCSD/Xihz2C7Is/Uzo1YSRIzlOCg2UBtpA84Q8yzLGSpj2brFaGsZFutF7EK1I+xyoWxN 6jr0fje+lU4htilQgmHBwdpFmhviFr96yOEnYqhevwpmJFfuvYz45E4wgjlNLoQM5HIjV4 LRA1BP9aLsQMpyjlabJsj3iWWzSNE8Nb5LdmM6B9gpR5+Sd+SCVlz6ZkxnHhWD6+s29RnR Fzmoef2k/8O02RRT0yRQpdPbIi76PrrMtdDVYXLcYiGiW+jwOMj82Yifi3cDFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649615651; a=rsa-sha256; cv=none; b=jyZkYq74Jx7eLo5463uFkktTOXaCUfnvve2pxlRd1Ia4XYrj9YPgg9REdsNYBSJD3ad3mR Ol4/oadjCefMw1rLDoc3boK97Q/EbpzHg470by03UWmPdjgKc2vWFYlPWTdjbmnt7lhrFW p/I4ypLo8lrC28khm4cqIvbcSt5fQ8jW0YN1Uhy+RjVITZasYqYNbC6bM/bDYD+Z+Abvtq bKtID7FK1q2SSkjAK6gdJWm0kLG/daQ0D22f17PvzRC1PWuYGCPusFJxQN/nhNl64wdQ3N CRR2gjZp/ARZ2QA7fJSCHeG6RvRPtpMXqo13DV7rASd1SrxcY1I67BXDBRMQyw== 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=5a17f489d5848085307e1d5fa7ca142694b4946b commit 5a17f489d5848085307e1d5fa7ca142694b4946b Author: Robert Wing AuthorDate: 2022-04-10 18:30:19 +0000 Commit: Robert Wing CommitDate: 2022-04-10 18:30:19 +0000 vmm: fix set but not used warning --- sys/amd64/vmm/vmm_ioport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/vmm/vmm_ioport.c b/sys/amd64/vmm/vmm_ioport.c index e494bac46f23..e30f796d598c 100644 --- a/sys/amd64/vmm/vmm_ioport.c +++ b/sys/amd64/vmm/vmm_ioport.c @@ -157,7 +157,7 @@ emulate_inout_str(struct vm *vm, int vcpuid, struct vm_exit *vmexit, bool *retu) int vm_handle_inout(struct vm *vm, int vcpuid, struct vm_exit *vmexit, bool *retu) { - int bytes, error; + int bytes __diagused, error; bytes = vmexit->u.inout.bytes; KASSERT(bytes == 1 || bytes == 2 || bytes == 4,