From nobody Thu Dec 09 18:05:54 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 4786018E6E75; Thu, 9 Dec 2021 18:05:55 +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 4J925Z3RvBz3jR5; Thu, 9 Dec 2021 18:05:54 +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 4A9043656; Thu, 9 Dec 2021 18:05:54 +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 1B9I5sxF079753; Thu, 9 Dec 2021 18:05:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B9I5s8k079752; Thu, 9 Dec 2021 18:05:54 GMT (envelope-from git) Date: Thu, 9 Dec 2021 18:05:54 GMT Message-Id: <202112091805.1B9I5s8k079752@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: c9048120185b - main - geom_eli: mostly plug set-but-not-unused vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c9048120185bd112a67f844afe3e1a3a0a066b73 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639073154; 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=YksT5svaMOaBjo7ST+7W2unLLzVRgFPMZVegmz0dh54=; b=en0VlF1IURsP+yoh5p2qG3Ht/4g/qOpmAZC0r9fE5hLTwvJ7yxYxfRTwoGHlWYpKSzWxbp 7td0ZLg9ph32gC6S/WzVKxN1xvB+uqEAwxAWg0sAXRvmp5/+s90JoKqGLD8oz1Sb7tmuSW AasrPAsBnXOXT6aSY/9gR6IFKDE5+adKGrSxNtjfs5bGs8bLRSsp+1IpSfWN0xu39uFW2L e5vY0CnUcXM4jkgWzDPlCEwQZS+4uEt+P3kXWYfzPtkGG6sZd0YUanA8pkEPCPTShfdNfm ChJviNm/3oraEACU0XxpfFLquM82f4so/MyQY3PAwrJLpH5Ow+V+4kpnxjccLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639073154; a=rsa-sha256; cv=none; b=YoM0lgFisgj7EQPwSvlw+U6TpX7h6xwpnYGXs5j/YyL48qLLh6amawD/JoPKjAb6OmsivQ 67JJ+iQL1FRgLAsxDtXJ2KCKwJE03l93D/jiLMAOt8W1pCFFgnsdjSDCdFwn+dMPlxPY+X NKesFZXK/l/Qq4/BeZm8Ge4AcRliRsrXJmvIrml+48Bgjd+9v/ISEIz3l2SrVphRbYe4EY YLZdDyX+3brc4YC9Q7rNAXhHaDXEnLWymcgw3uHgMYsITMrDo0ydJ0YlA5sGbSqh0ddia/ 3bO3CBi+IXJxmQiqdppJ014x6Xqn2YUziKfECMaRLCCR5k0STK7N2Tr5KVMxqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=c9048120185bd112a67f844afe3e1a3a0a066b73 commit c9048120185bd112a67f844afe3e1a3a0a066b73 Author: Mateusz Guzik AuthorDate: 2021-12-09 18:05:06 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-09 18:05:06 +0000 geom_eli: mostly plug set-but-not-unused vars The remaining case is an ignored error. Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/geom/eli/g_eli.c | 4 ++-- sys/geom/eli/g_eli_integrity.c | 2 +- sys/geom/eli/g_eli_privacy.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c index 095d5cd2c274..4978523cbebe 100644 --- a/sys/geom/eli/g_eli.c +++ b/sys/geom/eli/g_eli.c @@ -657,7 +657,7 @@ g_eli_worker(void *arg) struct g_eli_softc *sc; struct g_eli_worker *wr; struct bio *bp; - int error; + int error __diagused; wr = arg; sc = wr->w_softc; @@ -824,7 +824,7 @@ g_eli_last_close(void *arg, int flags __unused) { struct g_geom *gp; char gpname[64]; - int error; + int error __diagused; g_topology_assert(); gp = arg; diff --git a/sys/geom/eli/g_eli_integrity.c b/sys/geom/eli/g_eli_integrity.c index 17a0912797c1..73b4a047a977 100644 --- a/sys/geom/eli/g_eli_integrity.c +++ b/sys/geom/eli/g_eli_integrity.c @@ -456,7 +456,7 @@ g_eli_auth_run(struct g_eli_worker *wr, struct bio *bp) u_int i, lsec, nsec, data_secsize, decr_secsize, encr_secsize; off_t dstoff; u_char *p, *data, *authkey, *plaindata; - int error; + int error __diagused; bool batch; G_ELI_LOGREQ(3, bp, "%s", __func__); diff --git a/sys/geom/eli/g_eli_privacy.c b/sys/geom/eli/g_eli_privacy.c index 20a9f09452c5..b7f399c8afb9 100644 --- a/sys/geom/eli/g_eli_privacy.c +++ b/sys/geom/eli/g_eli_privacy.c @@ -263,7 +263,7 @@ g_eli_crypto_run(struct g_eli_worker *wr, struct bio *bp) u_int i, nsec, secsize; off_t dstoff; u_char *data = NULL; - int error, pages_offset; + int error __diagused, pages_offset; bool batch; G_ELI_LOGREQ(3, bp, "%s", __func__);