Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1174009lqp; Fri, 22 Mar 2024 07:36:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFISwsiuFO/wxzFMFg0Lou00v7AlUfFPQiyYGu+XFqJm156n18EU3enmK9hWV9Gsp03NRLJy35dT7PzV6z6/CkvfXJlHdrpl+Dfq+uIg== X-Google-Smtp-Source: AGHT+IH8YwGCeF26g94e1dRJ7ZZp+q/qld+SXZE+AN2lNSgRKWv0rtzjpc8r+SqhAtKrzgSo6kwI X-Received: by 2002:a17:902:efcc:b0:1db:3a22:1fd6 with SMTP id ja12-20020a170902efcc00b001db3a221fd6mr2212617plb.66.1711118216846; Fri, 22 Mar 2024 07:36:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711118216; cv=pass; d=google.com; s=arc-20160816; b=kAcPtzcNTKnvQ398f5AtGvFzhXHAKcTfYwggbG+jKb0UsYd+aGRNLVD2jTf2ndm5L0 6PUbnHs2tmljc9QCwfxnE3iqfqp9jcONNyQ36nxe149nvtGdb/vVp9oeX9lesz/GEw0S xFPbO6AneDWVS8HZWBuuUOJ/pHADMNWTZd8+4nRPtLDhNLuksx/3Y64pcSeAIer3NsS8 APM5PuCtvF3eqBvWYVBK4f4K8gwgyaNoV3zN/BRzC98XNSA7seFLlkOQ+QTmRjEBQrgg qrhuJr2I3SWW63Y8BONZSSbNo/pfNLCkeYOGcby2HbUuUsA74YCJv1/CMMXG/VL6N3j/ KX3A== 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=OLq2FzWd7FLGKBfSeg6IKPdOZnODxa+vFbQiCdvjEh4=; fh=twjZIP4dB9EbStpFhLpgzYv2WbdfD3gZzxhV0WfebKg=; b=rKUpN1AEfm21aHAK7eFuSOO+8tXcUyyf/w/fIOrg8a0zGFBWFMXjjbWE+IVs5jx1lb xbyfVmN/JLsc6Eeqp6hW2AChS5wTPFcciFP46GvrXYahl1nvul0hJUuUQegM7e1+ss2H EmcPI44kl8+b6rBPk9SsVJKR1DjsZsOE7lqBXH7octrOAzCA/9gefDfHGZoLhevVZ+qc EHZVqQYozSesziT11JjqR6HC3vRxX5hp3C6D97BNNXqUtH8/aniqkiEsBK6QoN0voDWu l1+cuRzantiZTVc+e8ROFLE+ZhnZrYu5dD/xwKJYiKwn9omia9iT3PSbWvlOYJ8dAnwN zZ3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FEYTZR9t; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111630-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f7-20020a170902684700b001defbc853b6si2009941pln.607.2024.03.22.07.36.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:36:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FEYTZR9t; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111630-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 7DEC4285DF4 for ; Fri, 22 Mar 2024 14:36:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96D59481C6; Fri, 22 Mar 2024 14:36:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FEYTZR9t" 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 BDEE943AB2; Fri, 22 Mar 2024 14:36:47 +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=1711118207; cv=none; b=dbioPZBVpgRv9UYDIaKPR2mj6jSZBRoIjLX54tStnkUv9SIkjOiYse2pXAo4G8WC/QI6Q35LWSjQSrMQHO0ZHPBmWsq03blXc9F1FXm5leQyDWHnWqCO2Dn7l9RNPiq5LSjRuGEsGCFjYVArXHrqIjx4J8F6rkUtJf9C5M3t9Dg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711118207; c=relaxed/simple; bh=or1Gn+RA1pWhx4yqAzYUiva3aoBlbjp13O+FP9ZcQEc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lBCgrgsB3pu+VXGgVUuDZncfvXBO3n7d32Z3QtTCYE6gwnvh61zsBmkeUnBMi489n9zJsYx3r+NkW5cFrLaHt0k5N2Hv6/GyONthxc1z578JnZAE0j2B5wyo6C78h36nJ2453OI8EHjdpUIgpsFyKZyRApd2uA7aLGwDWqXrlfc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FEYTZR9t; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EECAC433C7; Fri, 22 Mar 2024 14:36:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711118207; bh=or1Gn+RA1pWhx4yqAzYUiva3aoBlbjp13O+FP9ZcQEc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=FEYTZR9tWAPx6fRWZAUimt4zk6jDgFdDx9iLxPaP3Kk4ohMnHknF/r1F2PavKZ7kU nKjucfS5J3TB2h4Q71q8SurP0HNVHyGhKcQ1FM0EIdSZesrzcODd9Iq6UI9TVJr6zS aLH0cM9C4e5c/Qv3/jIEfC4bNyoKotapP25/RZQ26hHPPARfhlpSeuubBAFzQYla7J O0CL+jWYVotEjaR4IP18e5iibEMmlbq+zAAdhrv2fuW4J+WpgxwovpN6gdliUzNhem An07uYG91Gow+N/Lg1kggriwj+jRnRqyM/1PF8mrMRUqYesS0vbYdwZ7rnH4vW1TZH 5rElHpW4IbCKQ== Message-ID: Date: Fri, 22 Mar 2024 08:36:44 -0600 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] ipv6: fib: hide unused 'pn' variable Content-Language: en-US To: Arnd Bergmann , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , YOSHIFUJI Hideaki , Ville Nuorvala Cc: Arnd Bergmann , Kui-Feng Lee , Breno Leitao , Kunwu Chan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240322131746.904943-1-arnd@kernel.org> From: David Ahern In-Reply-To: <20240322131746.904943-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3/22/24 7:14 AM, Arnd Bergmann wrote: > From: Arnd Bergmann > > When CONFIG_IPV6_SUBTREES is disabled, the only user is hidden, causing > a 'make W=1' warning: > > net/ipv6/ip6_fib.c: In function 'fib6_add': > net/ipv6/ip6_fib.c:1388:32: error: variable 'pn' set but not used [-Werror=unused-but-set-variable] > > Add another #ifdef around the variable declaration, matching the other > uses in this file. > > Fixes: 66729e18df08 ("[IPV6] ROUTE: Make sure we have fn->leaf when adding a node on subtree.") > Signed-off-by: Arnd Bergmann > --- > net/ipv6/ip6_fib.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) Reviewed-by: David Ahern