From nobody Wed Jul 27 19:18:01 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 4LtNpf1TZrz4XSCN; Wed, 27 Jul 2022 19:18:02 +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 4LtNpf0zwwz3G6X; Wed, 27 Jul 2022 19:18:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949482; 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=L8JBFSOpm7UgatK6hdR/IoztgbmU3QzLy1Io1sPtr3Y=; b=vtWUSoCNiV4atRX0fBGIPhdN8W8ztFsxElA33wxPXjj5vZ/HFAROCX0OBojF1nCgrrPJIR fQJaSdOQOgkkBYQjOBjp4B8433vSXfU0jxAr/owekjISvfBRjrZ6wbEOGOu3ApDAfT0wxA H3P98Yu9NHZX7SY+E1VRNbNPAWZsvFkgf9EE43qcX5yXkljjghvZ4oCMnYJq0fSS7BVG8J WibEDZ/yRnOS8GF+6gkafDjWJqXf32alhxlHgumwfE3RbKmLZ/hpBBaLRoMH9lGdb1oYiO pzyK4S6bfu+dT7kdxR0ZxM54Vlpq3GwJVhoCum0MKpHeSc/poeKFYGiHAT6+kw== 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 4LtNpf0589zSDk; Wed, 27 Jul 2022 19:18:02 +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 26RJI1kU058653; Wed, 27 Jul 2022 19:18:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26RJI1JR058652; Wed, 27 Jul 2022 19:18:01 GMT (envelope-from git) Date: Wed, 27 Jul 2022 19:18:01 GMT Message-Id: <202207271918.26RJI1JR058652@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: afbb64817633 - stable/13 - Fix unused variable warning in mlx5_fs_tree.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/13 X-Git-Reftype: branch X-Git-Commit: afbb64817633d8f7d1d45152e46bd708e0183d15 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949482; 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=L8JBFSOpm7UgatK6hdR/IoztgbmU3QzLy1Io1sPtr3Y=; b=WnPeSW+HRlz+T4UBemYExISd7LlHoRczofbhf63g/rrUwV98boHtlusZNQ58jyfEthlWA0 h+Ue7FA0eADrR78H5WOzyk95ggbNn2GbhhBnvhOR8QuIF6YYDzTtyFnsbKOdt94hU7+ZGj MSvOAE7+c8ubyZptlAEnBdyFE6rnfpJeA5tfuq8RaLFnTwesmH+WOFAT47XX3NZZ8OYJUB QDYMc9rEGeGDZlLYy4PTtMaRRSiiZdY/8YmpW3OWT7YcShg5kLxyzO1KPU+3K5wmfvy85F C5bLqIOMiGJ/rXnzOX+AyQ9bf2l3lPrYnSntKCxMYuVAqj1/bbUGLRFBH4NY0A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658949482; a=rsa-sha256; cv=none; b=RIUlkyb4msPihqYGFjuZ6gIspEiYx/oxBv/MRug568ZM7Ru9zUJocozKsfOZhlh8yRKwTm /w10a8pYkKawudfcayB0zS+ZoSqcR4j/XmIcDaz8QYUE6iEqRdwmWkEr8HUW9E3Pc2z/TO guNcFHeNaOVgDT77/Rsl2u1nDV8xXPTBLHthWBM4MQ3n1E6mH+Uq2S5R3zHsXS6J7Yx4VE 9FgCq2pr+t0meUf24Az0LzduwpK1WjFQVB4ypPSBJl+vIiDENnkyEypKGTW7rgFS0NJO1v mnl5ZhPB3CJ5bIzqBQ154Nd/51AFXiHSjmiEEA121H9HVGEJ1sczSfKNaxPDCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=afbb64817633d8f7d1d45152e46bd708e0183d15 commit afbb64817633d8f7d1d45152e46bd708e0183d15 Author: Dimitry Andric AuthorDate: 2022-07-24 22:09:33 +0000 Commit: Dimitry Andric CommitDate: 2022-07-27 19:16:22 +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 9568f23d5b8c..86cffe67583d 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c @@ -1407,7 +1407,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; @@ -1444,7 +1443,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