From nobody Tue Dec 14 14:45:04 2021 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 7E32F18F2DF9; Tue, 14 Dec 2021 14:45:05 +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 4JD1PY1cqZz4tw9; Tue, 14 Dec 2021 14:45:05 +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 146D92190; Tue, 14 Dec 2021 14:45:05 +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 1BEEj4iw033797; Tue, 14 Dec 2021 14:45:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEEj4a2033796; Tue, 14 Dec 2021 14:45:04 GMT (envelope-from git) Date: Tue, 14 Dec 2021 14:45:04 GMT Message-Id: <202112141445.1BEEj4a2033796@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: a90b85dd5adf - main - ktls: plug set-but-not-used vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a90b85dd5adfbcc98f9fc64d61890247ecc7a650 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639493105; 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=/caUicOLMY42Niv9YhITj03ZbiZBKjCySDlJBceQD9I=; b=iCp49LYQ6eHq+ggwqCr4Xdil6PbMiJdPDmCEwDCpuHvSGOLE9Wrg7Iq5unh0nn81MdVLVD RX3Kq8JsBjQG3qFlhdbgPlQKVbwyzj7/7y4ovpzBGpWeGei3ENILlKq9TcodhD4S6WdiH2 X5ZmTaUDC/brNK7T7bKYTbqPoOBRrWz/luUtdYLgdnpVrKtxjDXfVdAIOowIIfujlIs+RV upc4ayJLu2j3aF0TFCjHwgt3fXn1HHn8/SEeD4Jjq1ZG6UV/XcpAW2iXdSPs1QfXiraRoO cr/4fae4YSFtgteHYAfaeVU+xHnvgVygEzc/5yDHl14JoUxzsZV2hoJmrubv4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639493105; a=rsa-sha256; cv=none; b=BXuicAHsZiwhcAf+SFjkCiYNhJ+4PJsIga+B0y4UkKwMeNfh4wcislxTv1QbVueSu1SfJe apzVV1bT266JWrcfW6gYDHevI82SxpgcLbck2YaFrFgSqN1i14tuXI+plaUgPBwMia0HB+ MUyoSoOD5z5VyfJeeNBqX5sVA4xcz6Vh6mBqx6BQ6aSfxzVs3EVfGuwry+1LdgbeVPBK6P PCEFvliHi0yyTI193qb2WhPXa87YcZFD+6KAfVaekpHg/VROopb2pSzjWbH15YJW5h5CnL LW6oQrwiJGnKG8FVX5ii/YpRQuhGhM9N/30KZlnpTlidGvymxQPB2l7DtW7vpw== 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=a90b85dd5adfbcc98f9fc64d61890247ecc7a650 commit a90b85dd5adfbcc98f9fc64d61890247ecc7a650 Author: Mateusz Guzik AuthorDate: 2021-12-14 14:44:37 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-14 14:44:37 +0000 ktls: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/kern/uipc_ktls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c index aee9c2374e0b..9762e35a9a20 100644 --- a/sys/kern/uipc_ktls.c +++ b/sys/kern/uipc_ktls.c @@ -1308,7 +1308,7 @@ int ktls_get_rx_mode(struct socket *so, int *modep) { struct ktls_session *tls; - struct inpcb *inp; + struct inpcb *inp __diagused; if (SOLISTENING(so)) return (EINVAL); @@ -1328,7 +1328,7 @@ int ktls_get_tx_mode(struct socket *so, int *modep) { struct ktls_session *tls; - struct inpcb *inp; + struct inpcb *inp __diagused; if (SOLISTENING(so)) return (EINVAL); @@ -1646,7 +1646,7 @@ ktls_frame(struct mbuf *top, struct ktls_session *tls, int *enq_cnt, struct mbuf *m; uint64_t *noncep; uint16_t tls_len; - int maxlen; + int maxlen __diagused; maxlen = tls->params.max_frame_len; *enq_cnt = 0;