Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp55720rdb; Mon, 22 Jan 2024 11:45:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7sKPe0cDE+oV8Dn22QJBzIopc9PHraWr+M1vTEduR/ZguSHuc72awdVkZNohhDDlfe5cW X-Received: by 2002:a17:902:e751:b0:1d7:4b27:4ac3 with SMTP id p17-20020a170902e75100b001d74b274ac3mr2670341plf.31.1705952704632; Mon, 22 Jan 2024 11:45:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705952704; cv=pass; d=google.com; s=arc-20160816; b=cnbBuadbJeBrptYADrS+W3aYeLxMOp/UsqwUGauCwcqQasJh76RhXr3h8u7cgQKjgp 1axV/KG2WIOYNvhcMeXyS4ps2iQymmauTBspA/D8uQOep8IqzF4PFoBwlj1sMv9SaqP6 /OUTmCDjHBnQq9f+L1eJMY6QQtHN1IscDeKSYFIZgCiYo4T4N+1+ptlUQqUixQIMlwPY nQvl1VaFABncYeClH+ts+BnVBS/+UfSxRXs9KFcV46nwDVBVlL25IVdPbP5hsY36hzTR IuOdSjgS9JnLKc7oNwMs1HExPVfGDxDlbv//+gg+2oKlEit1ZwfF2Thn2QR6v7WonE4o iLRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=+e7zU3ZPdquiusRRJ9ZOqs73BRN5jiFTF57WZyequpo=; fh=VACp7j/+IDxD20v8jc65pkQ2BDAghL+d2deh48U5njM=; b=w1ugiFwgzseLSgtjrzRWUkVNKkPSvg3gEufL6MfQrWWaEF6OoU/N4CLtcrbC5mw6d6 +Y/Rb+zioq4/4OWqgSWtymmYD2zuMdzYKzZgNm2/W9m3dTTbIl0Tb1FGbmknflPPNquX Fm1vK6hhygg/ZZb6uiTH2xgT/OY7sxc9VS9bvwLxN1PumUnx7aXEer7TXdKrFs8YwvdE Vi79mZCe8MOItUD4ZIWCFfNMl0nBSGUAu66nsJTc35bRnFog88dO8noO5lZCj7UV4BrZ LIqr1yTeDUjHmJA6tRMwRPnECZ4qxvltwqqqSFpRPZmL3/2wEAwFQ6Ca0XqXuuLlnsqq Kdbg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W+bANRH6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-34065-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e4-20020a170902744400b001d757bf025fsi1859503plt.231.2024.01.22.11.45.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 11:45:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34065-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W+bANRH6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-34065-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C72E82878AB for ; Mon, 22 Jan 2024 19:41:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F9233FB1E; Mon, 22 Jan 2024 19:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W+bANRH6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9673C3EA97; Mon, 22 Jan 2024 19:41:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705952503; cv=none; b=sBftZBUN3yfVP8frHT+4LHrXXa7P6xSgDNFKFEr3+V1cBbdqU93wxBG+c2GCE2fmf/CYpAGHSXGMYUg6dydAW82XnLDKMDCQef5I2YCcxbf1Uc3OoLQbMiUWXTdgXrpSvCgHCUk10fLOksV/7ir8Qm3IO+7dYyi77NDz67Oy08E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705952503; c=relaxed/simple; bh=yScizP2sDx+pS8QpK8qbOEYIhEUG2MaHox3qNzgVoG0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=G1ay0Cotr4gdroPf7DIM2HZksUJAbvDbjTiU03UVba1LuPk67tKTzVq8NKUD1xGNEP2tOhhMbaR4JsuRfmVhrNLRRhQhHND7D8LaG7UCkJSBAM4i7dCl6gzOej7Xz1V2Q4wSLQJTwQypRQfdhGBHAwoMTw2QGVZ0ApkTFXnvNVw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=W+bANRH6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5D67C433C7; Mon, 22 Jan 2024 19:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705952503; bh=yScizP2sDx+pS8QpK8qbOEYIhEUG2MaHox3qNzgVoG0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=W+bANRH6ifkrn9tiNwAwK1FJDPFKpI4Ri2wV7AY/SczuUnswcLtxUFmV6FMEiYv2F KsijSmc9erMkjS9YayaQa8pUF3PRuVgyUfS4/LvqwidUlE1m+GGGS4hKF2IgXTE0Yj bcRFVKezxvZQhSqjS1fYFwPuR85YNuK3HM8YeH/U4TaMx8WkmJsJWYXei+RzTWyJFO 69J7JXUylCfchCsfzJMx3uCHpnKIbXEboRYzcsRhgZXhAtuPydfPh6jKaFxaTE8gVl 7KywG6HlbfYb7onValDGcBBnwlPPt/D8wq2oitK1FkmriNEIOC1l+5X06TM93xqDmr 4YItRG+QCHvvQ== Message-ID: <233ad4e5-4439-4c85-96e6-6d55ec2622ac@kernel.org> Date: Mon, 22 Jan 2024 12:41:41 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RESEND net-next 2/2] net/ipv6: resolve warning in ip6_fib.c Content-Language: en-US To: Breno Leitao , weiwan@google.com, kuba@kernel.org, "David S. Miller" , Eric Dumazet , Paolo Abeni Cc: leit@meta.com, "open list:NETWORKING [IPv4/IPv6]" , open list References: <20240122181955.2391676-1-leitao@debian.org> <20240122181955.2391676-2-leitao@debian.org> From: David Ahern In-Reply-To: <20240122181955.2391676-2-leitao@debian.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/22/24 11:19 AM, Breno Leitao wrote: > In some configurations, the 'iter' variable in function > fib6_repair_tree() is unused, resulting the following warning when > compiled with W=1. > > net/ipv6/ip6_fib.c:1781:6: warning: variable 'iter' set but not used [-Wunused-but-set-variable] > 1781 | int iter = 0; > | ^ > > It is unclear what is the advantage of this RT6_TRACE() macro[1], since > users can control pr_debug() in runtime, which is better than at > compilation time. pr_debug() has no overhead when disabled. > > Remove the RT6_TRACE() in favor of simple pr_debug() helpers. > > [1] Link: https://lore.kernel.org/all/ZZwSEJv2HgI0cD4J@gmail.com/ > Signed-off-by: Breno Leitao > --- > include/net/ip6_fib.h | 6 ------ > net/ipv6/ip6_fib.c | 15 +++++++++------ > net/ipv6/route.c | 8 ++++---- > 3 files changed, 13 insertions(+), 16 deletions(-) > Reviewed-by: David Ahern