From nobody Wed Jul 27 19:21:26 2022 X-Original-To: dev-commits-src-branches@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 4LtNtZ498Qz4XSNT; Wed, 27 Jul 2022 19:21:26 +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 4LtNtZ1r3gz3JCY; Wed, 27 Jul 2022 19:21:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949686; 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=qPHnp0spRQimRKaILXnhhkApfw5gLFhhNLCrFyscCv8=; b=tiQvfuatx3nYflrO5XCLZpehFvi+wjGC43S9rGnCLdYA/Crvqa7mG5yQsTV27H/xJxTp8V ICTHWkkp4HeGsy7IDfZzTrZKTGFM0bu0hcS14A8BqDGI2ZvViEhOw/Q1Eqrsea2THqtLYe 0eIeBVqC6rN/1oB1QN+ugiOGB3U9Ab64pYOm+SJQV32SmNz+jPJs/TV/CGM4j5VZhcmHDE ocJ68mjKeKZved14+O92djiDcwlnmVNQF9X+E947/SFpSUgW6WeagkZ9WCNUROSLiZi3PG pN3euQ23vdlxVdl1rYs1+CeaM1n1pjR2jnu9X6ApUCsMXyRmG6tF1PkG6jdxhg== 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 4LtNtZ0mrpzSny; Wed, 27 Jul 2022 19:21:26 +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 26RJLQ4Y071633; Wed, 27 Jul 2022 19:21:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26RJLQvS071632; Wed, 27 Jul 2022 19:21:26 GMT (envelope-from git) Date: Wed, 27 Jul 2022 19:21:26 GMT Message-Id: <202207271921.26RJLQvS071632@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: 8411ec0f213d - stable/12 - Fix unused variable warning in mlx5_fs_tree.c List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: 8411ec0f213d20a4e6a72a2694190ea4bd3fff73 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949686; 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=qPHnp0spRQimRKaILXnhhkApfw5gLFhhNLCrFyscCv8=; b=qfNT8FlZankir5XGhvXOe5oK2rJslxL5coBjgAUgDpLWAui5LlTb/TebUev2FikhVeQoCc jPHsotASihFxArf42vG3dDwte04lDUirI3zF5dw9Ay1ENcoRL67XB9YFAFtsIwrPS1Kbu7 akH32EN5OTLPl8+S5p81OriE1daoCBxPIFvnwb/nSXwuaDqPhTsjmUunDgNcobCtfpcD7O 1LxaJbkqoiwruyVhZxDnvlkFgbw9TYXt6sS4Oswr4hRHDDZpxiIw7jMZ+ysrr4Y91fFdIT YSKhOVGkin+1k6T6JIi0KEZPqyO7jyBPQP0NzXJWlicWvkRdEPhy3BziSIpdyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658949686; a=rsa-sha256; cv=none; b=tp6H3vf90PaWosyNzWUb0c5LK7Qo6r3MkUx+cN0/mwpsK6Koh0yq0E6/F/uLc325moHFYx Sw38m+Lq3T15D1Bq9cnp/B4m8nDVoC3y7h0fQY35KaRHh/uiT5Hmj59m+MUvDlczaVv+Oe efngojv5yH2iFHeNgAp/NFlIhJGWpFqirqL9oHudWIEXLyMM94uc9O9WCEXyZzi5K2N86a X26Zo0xZdAizh0X3oElpKHkU3wPEMHWnLX8VHRqu41cKpIlKfBbXk0ruhKC2CgV6eBQSbz qNNIB3KMQyRrp3zX68ga64pTW9uR9spePPlity8upe23PitztcXxjZKUSPgydA== 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=8411ec0f213d20a4e6a72a2694190ea4bd3fff73 commit 8411ec0f213d20a4e6a72a2694190ea4bd3fff73 Author: Dimitry Andric AuthorDate: 2022-07-24 22:09:33 +0000 Commit: Dimitry Andric CommitDate: 2022-07-27 19:21:13 +0000 Fix unused variable warning in mlx5_fs_tree.c With clang 15, the following -Werror warning is produced: sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c:1408:15: error: variable 'candidate_group_num' set but not used [-Werror,-Wunused-but-set-variable] unsigned int candidate_group_num = 0; ^ The 'candidate_group_num' variable appears to have been a debugging aid that has never been used for anything, so remove it. MFC after: 3 days (cherry picked from commit 6332ad8673fb108dcb8af0aaa42d75ea845748d7) --- sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c index e7951682e56d..bb0cb5dad39f 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c @@ -1394,7 +1394,6 @@ static struct mlx5_flow_group *create_autogroup(struct mlx5_flow_table *ft, { unsigned int group_size; unsigned int candidate_index = 0; - unsigned int candidate_group_num = 0; struct mlx5_flow_group *g; struct mlx5_flow_group *ret; struct list_head *prev = &ft->fgs; @@ -1431,7 +1430,6 @@ static struct mlx5_flow_group *create_autogroup(struct mlx5_flow_table *ft, /* sorted by start_index */ fs_for_each_fg(g, ft) { - candidate_group_num++; if (candidate_index + group_size > g->start_index) candidate_index = g->start_index + g->max_ftes; else