From nobody Sun Dec 05 22:31:25 2021 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 8DB9118D2B2C; Sun, 5 Dec 2021 22:31:25 +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 4J6h9n2HL7z3qPG; Sun, 5 Dec 2021 22:31:25 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 2E5F420493; Sun, 5 Dec 2021 22:31:25 +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 1B5MVPlC036009; Sun, 5 Dec 2021 22:31:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B5MVPfn036008; Sun, 5 Dec 2021 22:31:25 GMT (envelope-from git) Date: Sun, 5 Dec 2021 22:31:25 GMT Message-Id: <202112052231.1B5MVPfn036008@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Scott Long Subject: git: 4d54d1b7fd06 - main - Fix "set but not used" in opencrypto, with a correction for the previous commit. 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: scottl X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4d54d1b7fd06b09495603eb56bf199043aa14fc1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638743485; 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=Hk4AY4ZjfERMHNeSYMkhNnWhlemYooXf8/t/vZIQPj4=; b=usd04EhjLqT2CQJvl+0JQ723c1dHnkDrRQWsdGXwwFK7vn5szKhI6UUBK+zJ7mW3meNEYZ TY/AsN9Cs/MYKWg6Pa1Vqj3AhneqBzJAqRKaYENVarvPrnN53UmAxPOyQQzmZg5THVR0/q wDoYvUURYZuXkyT5Okg39+R2ABUDz+g+enhr/04k/MdJRyZ+1k0zMAyypUq5RK6lUCqCFZ BfLeVImgx79L93AVI37Bs6V0AoJxm51n/ym+GgXI/V0wBUyxOf+IwyjMmT+UzJyXqKHuxe mp4+saEB3MmpsdvEz4cxNFj3JU2Tt2uOh3SRCU1ShNHH5xq4q5Y2teDF17ceiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638743485; a=rsa-sha256; cv=none; b=xWqApDlW1ByMqvSpX4lrjt/FYARK2sB6NL5isDblv2dXxk0D+MLuZIXDeGd/1pxEIzgujG A2DWBA6xyHAR9BDYa6ZdW5eKNRrUgazM/FwWlDedjKubS9VNnoKE8VlPzZWLVVUGOQiqI1 nAm8yVuxZwv8TlBrrmM3fWL5Cz7s4C1oOTxje2qQ9Z+0DSbcpT5KH2jgFBdHVZTrfpBQkn tD6KeBf5ZVusvBhJzpisHTtnBXUiQGL2a17k1v88N9e1plpYj2xTFKbJwx837OojKUmLud pGMFbXmfhDD0YI7f+WA6QBHQszIabGO89R7Xvm6vektA3GMQ2DHEYaLNlhZY5g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by scottl: URL: https://cgit.FreeBSD.org/src/commit/?id=4d54d1b7fd06b09495603eb56bf199043aa14fc1 commit 4d54d1b7fd06b09495603eb56bf199043aa14fc1 Author: Scott Long AuthorDate: 2021-12-05 22:30:36 +0000 Commit: Scott Long CommitDate: 2021-12-05 22:30:36 +0000 Fix "set but not used" in opencrypto, with a correction for the previous commit. Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/opencrypto/criov.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/opencrypto/criov.c b/sys/opencrypto/criov.c index fe15a59676ae..02b040d787ff 100644 --- a/sys/opencrypto/criov.c +++ b/sys/opencrypto/criov.c @@ -158,9 +158,11 @@ static int cvm_page_apply(vm_page_t *pages, int off, int len, int (*f)(void *, const void *, u_int), void *arg) { + int processed __unused; unsigned count; int rval; + processed = 0; CVM_PAGE_SKIP(); while (len > 0) { char *kaddr = (char *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(*pages)); @@ -169,6 +171,7 @@ cvm_page_apply(vm_page_t *pages, int off, int len, if (rval) return (rval); len -= count; + processed += count; off = 0; pages++; }