From nobody Sun Apr 10 18:34:10 2022 X-Original-To: dev-commits-src-all@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 D3AE81A829FC; Sun, 10 Apr 2022 18:34:10 +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 4Kc0xt3RdFz4jPL; Sun, 10 Apr 2022 18:34:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649615650; 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=f4tG2rjRiH1CSLGYuDq3jXiFlKR/Zf3vZ82UMavL1Zs=; b=vYubIrzhw9gLfZvlQARsG99DPs5t8oNcoHS+SPG9CL6CgXEpdrgZ4YB/qDrk5rWogcDio5 4qWhMvGtLRvbjpbNyBUZxRK88sT0bWFenAP/Ck9APzmX376KpAPaXYBmRCE7Fej1ZgiFDA BHdC0kVhGHoHYvwdd/ZWqVWFSpWhoKfjjSv9sEzY9MUMMwKexRjDJHSbVkai0ecqobD4S6 44c58eJRQn0cvKx+AsBqqE1JzkgFLHjVaaStPdHq19LSudtIVbK4OUT0OcDmTqk8YjsVGO YObRqvsg3z0OYxW0hoWmG/yGtUvnK5L1RFqpq5ylvTjqQ60yxhtezISGqfEUfg== 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 2A2C113759; Sun, 10 Apr 2022 18:34:10 +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 23AIYACs074965; Sun, 10 Apr 2022 18:34:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23AIYAwU074964; Sun, 10 Apr 2022 18:34:10 GMT (envelope-from git) Date: Sun, 10 Apr 2022 18:34:10 GMT Message-Id: <202204101834.23AIYAwU074964@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: 5241577a223d - main - vmm: fix set but not used warning List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 5241577a223d805282f726cb443a566aca653b9f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649615650; 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=f4tG2rjRiH1CSLGYuDq3jXiFlKR/Zf3vZ82UMavL1Zs=; b=OFCoD0GHgXbpKR7isXN+7gTmxBl+LEnHKsN9/t4YNk0Aty1ufbRZNiG073nOPhND2VJ/eF qoJjkHUnTMlBnT31PEvKpmfQ7Q8q2alSo0MZL8fHFvz/pxo8okX69WRr74GCmhBcCp74sz 7JqJSU3CRdelE7gKLsFEe8b6O8bRV+n01olT+3DMDyZMCOT6Cru0zvYhvxN2CFFkvMmosC DMTQvfYLhvs0S7Zo/LwIlsKw8zKK0i6dMlCk1/YDzZvqNNQKv8ZYUAw3gtyicRjmNYp6uk tyzchzJ5Uu3RuD1oXfHU1SmKfdPtGnCMMk+RUtypoMtlfQ2KHvSwnAWSBQNRqQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649615650; a=rsa-sha256; cv=none; b=kAiWNIee7Hx1tTqz4jr/3YW8JgtjlF5qCYlwsOcjlXp/IxTvRqj3LHNzDhA29Mx5agZH21 wnv/RBOTlmq3R/7RSau/BtL0VFIQhXZ+StmYbXuvlUsAOXbFvEj/wOfwAT+Bbrc1mPoMy7 3BqOu5mxcxsDuPPchT0yfygFFlwSwWWa2Do9oOqmpHmR0Kns0z/+VqqVHO/bAUy3SBOw66 3R2l810lFYMvEe73vjvQCCN40lNR1sz3SBIAJXk8vSf6Z04lpJf6EPvOMC2pmyCzxsXhnq bYkHYp1O33AsV5S9pNUB9aSDvwl/9bNlsaVNw+8c2DnNmPu2xlcZsWiRyZALUA== 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=5241577a223d805282f726cb443a566aca653b9f commit 5241577a223d805282f726cb443a566aca653b9f Author: Robert Wing AuthorDate: 2022-04-10 18:30:16 +0000 Commit: Robert Wing CommitDate: 2022-04-10 18:30:16 +0000 vmm: fix set but not used warning --- sys/amd64/vmm/vmm_instruction_emul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/vmm/vmm_instruction_emul.c b/sys/amd64/vmm/vmm_instruction_emul.c index ae022210893c..809fa16bce46 100644 --- a/sys/amd64/vmm/vmm_instruction_emul.c +++ b/sys/amd64/vmm/vmm_instruction_emul.c @@ -717,7 +717,7 @@ get_gla(void *vm, int vcpuid, struct vie *vie, struct vm_guest_paging *paging, { struct seg_desc desc; uint64_t cr0, val, rflags; - int error; + int error __diagused; error = vie_read_register(vm, vcpuid, VM_REG_GUEST_CR0, &cr0); KASSERT(error == 0, ("%s: error %d getting cr0", __func__, error));