From mboxrd@z Thu Jan 1 00:00:00 1970 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 0CB0A3C34 for ; Sat, 4 Nov 2023 16:33:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="InxKZ5rS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EBC3C433C7; Sat, 4 Nov 2023 16:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699115635; bh=e4QQlFAxSGhj3jwYBmB3+pfSiYHMJrLFy6FKplzgwW4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=InxKZ5rShROXQtrsH7Y9oylUaQBgmsjiCspRz/qGI3aMWFhvWSd7pnn75eIOQSMZP c/LtCMGgp+26G8S1hzQywotKV8ZN4gTaT6q8YVvjbBthxaHkFD0mRz95VrZQdRY/md umrBYKp0a927rK9UD3CgNIE4v3ZgCI4lvOwqYtr9A7CXR/VlXnkAhQp82DFlQ1KcQ/ RpQbp0+dE+npW9+oZMBVBa9MZxfd4ED+gZH+7iLriorqoAimK7JCa58eRYYwlaVAJj fGRyAVrJglpHTUasqfIsZ5rtwqBSs6VD34bugv69pRP7Qw1nlOM11IOHeGKtPOb0Qv lsbEX34Di2khw== Date: Sat, 4 Nov 2023 12:33:38 -0400 From: Simon Horman To: Yang Li Cc: kuba@kernel.org, edumazet@google.com, davem@davemloft.net, pabeni@redhat.com, fw@strlen.de, kadlec@netfilter.org, pablo@netfilter.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH net-next] netfilter: nf_tables: Remove unused variable nft_net Message-ID: <20231104163338.GN891380@kernel.org> References: <20231101013351.55902-1-yang.lee@linux.alibaba.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231101013351.55902-1-yang.lee@linux.alibaba.com> On Wed, Nov 01, 2023 at 09:33:51AM +0800, Yang Li wrote: > The code that uses nft_net has been removed, and the nft_pernet function > is merely obtaining a reference to shared data through the net pointer. > The content of the net pointer is not modified or changed, so both of > them should be removed. > > silence the warning: > net/netfilter/nft_set_rbtree.c:627:26: warning: variable ‘nft_net’ set but not used > > Reported-by: Abaci Robot > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7103 > Signed-off-by: Yang Li I think this is for nf-next, rather than net-next (which is closed). But as for the change itself, I also noticed this, and am glad to see it being addressed. Reviewed-by: Simon Horman