From nobody Sun Aug 21 11:29:43 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 4M9YDl48VHz4ZYst; Sun, 21 Aug 2022 11:29:43 +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 4M9YDl39lSz40XT; Sun, 21 Aug 2022 11:29:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081383; 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=bYAp4I3pnX4LB0yDi258aia1AHrIvfCoF2u9zC87WpM=; b=kIoWsTZQVOm6q8B9florPbhgkxVFobE4pblvextf+zo5LARHV4dC1wWJSZelGdP0mh76jW LHnO31lVDjLTHHeNvjV0xQ3a/3uX/lLrYZVksjVlYGOdQ/Jjg/4K4yGbB6ZlFMLcXb4hMW nbJLkM/2gpO3v1p8tltBJzj7brM5MMGfYsGBkkySfu0rJPdV2M1RO252XBWenkO5YPLV81 Um52aScnlPgmZRAnLVzZ/wnk3Z20Zap7LKDGdPvXgb0f2het/5lTsZ13EsO7r57sfU4zd5 29OLpMOm+EQcxc97aPaU7+3cZFU8Iw6Ry/ImTtGEsI8tqOdn3O1UrFYMoOVJUg== 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 4M9YDl1Wqcz18L0; Sun, 21 Aug 2022 11:29:43 +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 27LBThOC005276; Sun, 21 Aug 2022 11:29:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBThOP005275; Sun, 21 Aug 2022 11:29:43 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:43 GMT Message-Id: <202208211129.27LBThOP005275@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 578d8f93983a - stable/12 - Fix unused variable warning in tcp_hpts.c 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 578d8f93983a4a2f9a16683b4d227005b3b92414 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081383; 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=bYAp4I3pnX4LB0yDi258aia1AHrIvfCoF2u9zC87WpM=; b=MMJka7S5R6/pMEwr09vxE2NIzM6NcGwNLg9XRait+sp/YZKn1mx82ptPesIHDCFtEJgogZ LfaNyWrfvjrwre8aAg2GzEHcvUxXgJGTj1hVoSPTf54Fu+DEE6tkiXWjdxdmTL+/YDBK98 5BzvP7moZzdvKvd3+D4jBaCFIt3meNFIsbI46VGBSXngrR3ciXPG6R3Wfn5+moKlO7eqxZ jBRvoYbnE8VEpna1zkMPxtcc5EWCw2BK0MJJL2ngZdGvC3JCRJ1ir7Rzm5t9jSndHpUWRk kxoFh4YyFV+VGHpOh8KfZMTjbQe4B1BLlKuyJ2xocz5F+6qIRySRHsQssA3gmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081383; a=rsa-sha256; cv=none; b=H8wSju0uwTeRkaVBQWuhzckGI4muoE1efQB87mIbE4RvOpEHbqKI2L96jb7ldrti3KL9vZ v3q0sOv9PjvnqX569oQ2bSq8LXa7pbe8FjDlUvT1hquzqy5+AoBCya0nAZl6z64ZazWa9j Q7I9Y9Nh4IWFLBfdyKFFh/8J53ZTF3NxyYVIhrP+P2gn9o5pqA+sti7+5eSt6SaQwvP3GT ibC6yPwPVrOQApTtCu7vV5kp7u3kJ87HwiFAGkgl49ylflWnDf6sNXt3F4+z7yarxG+VvX qQx+K9q9vPOtNWkBsSOmEBeUkXJDNHbnWq3Nx4Tr6RH9hEzvxEqihltaW/hZbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=578d8f93983a4a2f9a16683b4d227005b3b92414 commit 578d8f93983a4a2f9a16683b4d227005b3b92414 Author: Dimitry Andric AuthorDate: 2022-08-15 18:14:39 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:26:10 +0000 Fix unused variable warning in tcp_hpts.c With clang 15, the following -Werror warning is produced: sys/netinet/tcp_hpts.c:1114:10: error: variable 'paced_cnt' set but not used [-Werror,-Wunused-but-set-variable] int32_t paced_cnt = 0; ^ The 'paced_cnt' variable was in tcp_hpts.c when it was first added, but it appears to have been a debugging aid that has never been used, so remove it. MFC after: 3 days (cherry picked from commit b33bfe6e157429ad764e9a883a5e3a194a6d1f9f) --- sys/netinet/tcp_hpts.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/netinet/tcp_hpts.c b/sys/netinet/tcp_hpts.c index 5b7939006050..1ea0bd1148f9 100644 --- a/sys/netinet/tcp_hpts.c +++ b/sys/netinet/tcp_hpts.c @@ -1349,7 +1349,6 @@ tcp_hptsi(struct tcp_hpts_entry *hpts) struct inpcb *inp = NULL, *ninp; struct timeval tv; int32_t ticks_to_run, i, error; - int32_t paced_cnt = 0; int32_t loop_cnt = 0; int32_t did_prefetch = 0; int32_t prefetch_ninp = 0; @@ -1462,7 +1461,6 @@ again: while ((inp = TAILQ_FIRST(&hpts->p_hptss[hpts->p_runningtick])) != NULL) { /* For debugging */ hpts->p_inp = inp; - paced_cnt++; #ifdef INVARIANTS if (hpts->p_runningtick != inp->inp_hptsslot) { panic("Hpts:%p inp:%p slot mis-aligned %u vs %u",