Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5908522rwb; Tue, 1 Aug 2023 09:28:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlHRb95ywWBGchU0mXTpxHk1pWTMPGCRAsy10BReQZG1cNozDYtcXTPJCiOug1q8B6kSqN7v X-Received: by 2002:a17:906:7691:b0:994:536c:ab45 with SMTP id o17-20020a170906769100b00994536cab45mr2831663ejm.50.1690907336285; Tue, 01 Aug 2023 09:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690907336; cv=none; d=google.com; s=arc-20160816; b=pMc2a+dCmU8GVeOdAW1sUCeQQY/3/x30rURUCACP77sGSab8hlQz/ZRmbHy3PbqXgQ dJ1sJUyWtDfBYAZjbni2RyfkvNi72yHl5PVHNR8pj03aIaale0CYl15QzJuz7LDQIjfz AQw6S5+KC+vBrnU2XIrZhCkmH9qEfXCfmOS7EQxUsZ6tr2d3DeeyELDArv6Be/BA4g0D GzvAM4P7dLbJpg8wFI99jR9ud0KWdUOvrdZK/xjjfwTq3mANg88ZrBsPb9W5Ia3ZzeF2 xne5TzSU9FVbtw9zlQATSLkksRhebvxRtGHZUtCr9ayP1GEdLg2SOg9K0wcvyESfigT6 es8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=gJmKl0XnfNOfeViEaAye1ljmUyCgjpGGF5LwtdmY9m8=; fh=BAmFDubsrqsujHHRdvBUNQJASDMiymk0r/85MOa4gpI=; b=MEqbDNLoqMIJ2mSNndPwFJpqKQCWjWa2xLntkVj9plW1sxijOq3QvR/vXNi68w13HB TPxZYD5hOnVWCY5wlbTnqeS6EhP41zeN/6C7fr4IGegzFXhK6zLiMLNwSfTE715N15S0 HvoXR6zHKr3XkWKQhAwbipug3VDaWpP/C+vXmN8fb3ECh3UXpnbpM204VAI02QZ08vdu +yuPl7wro3ykd2HRXG15PohupJV/RNX651mg0knR91suepnaa7vbFvzdqZCOgiWxG7I/ XuIRBkFQuXFaBVKbd85/WjyYkhCvGQJBwyt6FRHs5U5L8Zx/3ZDN9MmCxUMd8LOOw8zi waHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm2 header.b=kAI8OP+w; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=U3O8+Gro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z24-20020a170906815800b0099bd1dc4c3fsi4146570ejw.154.2023.08.01.09.28.31; Tue, 01 Aug 2023 09:28:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm2 header.b=kAI8OP+w; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=U3O8+Gro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234056AbjHAPU1 (ORCPT + 99 others); Tue, 1 Aug 2023 11:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234145AbjHAPUX (ORCPT ); Tue, 1 Aug 2023 11:20:23 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77EDB10F5; Tue, 1 Aug 2023 08:20:17 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id E7CC75C01DE; Tue, 1 Aug 2023 11:20:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 01 Aug 2023 11:20:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1690903215; x=1690989615; bh=gJ mKl0XnfNOfeViEaAye1ljmUyCgjpGGF5LwtdmY9m8=; b=kAI8OP+w7hRnTsNISf Uz+0k1ByOl3+BgqmhHW9gkvOaahlgmnyQYuQXD0XvuiC9wbgMXM+fUWkkxp0+vZ2 HqA6h2rJh0ciY1zXNCldFw8QkHIcXqBNbAqm9ygVKkUkMFc1ohf4++NLc+6uUgXr 9WhZ/xhp1GqOI9MDlYiO7QkatBosPBRWgoCTCqEPVlZvjua1IweDyTJP77cMOZBn dc86f1YG6SOXdeazIGGb/lBpPWrMObPdqseYvBMPzexLCojwScx7TusVPKSIiqNw 9oRic0LKT/n5BXIIAYJ/6zwEBYeTgKvmopa3VM/LGOT/SZX10vLcB8aPADrHMLvv E1aA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1690903215; x=1690989615; bh=gJmKl0XnfNOfe ViEaAye1ljmUyCgjpGGF5LwtdmY9m8=; b=U3O8+Gro+DkZxLXCtbWwh6i9IVZXB hNHMFHthh6/il7yvHM4u1C6NOh/jSLpAXZA83VYSmVOmH0VLK+0Ydg2RUpg5Mlza 25wh7vqZVROnVgoCa8/9hXlYUCoNu7ZYbeaH5IFalx9vBv3a0kjP+5mx8IoSs4SW xKGENUCVy1ZlWdxgXopgv+5KoPPexXR6Rz3CHmBzxLyAHM/Z+IPG6zdMTxSS1NxM WWZ1jHC3yY0xfF6hV0/ycGiy+ozB5CVKmyBnoS6jDcPoW275+TOFxLYwVCYeyTSC A2TNvuqCGz0ts8Frf0dbZjpMqSrMYEka4l4h5hHkGEeWbaGXavGsbFLDg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrjeeigdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesthdtsfdttddt vdenucfhrhhomhepffgrnhhivghlucgiuhcuoegugihusegugihuuhhurdighiiiqeenuc ggtffrrghtthgvrhhnpedvfeekteduudefieegtdehfeffkeeuudekheduffduffffgfeg iedttefgvdfhvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpegugihusegugihuuhhurdighiii X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Aug 2023 11:20:13 -0400 (EDT) Date: Tue, 1 Aug 2023 09:20:12 -0600 From: Daniel Xu To: Arnd Bergmann Cc: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Arnd Bergmann , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH] netfilter: bpf_link: avoid unused-function warning Message-ID: References: <20230801150304.1980987-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230801150304.1980987-1-arnd@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Tue, Aug 01, 2023 at 05:02:41PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The newly added function is unused in some random configurations: > > net/netfilter/nf_bpf_link.c:32:1: error: 'get_proto_defrag_hook' defined but not used [-Werror=unused-function] > 32 | get_proto_defrag_hook(struct bpf_nf_link *link, > | ^~~~~~~~~~~~~~~~~~~~~ > This was fixed in 81584c23f249 ("netfilter: bpf: Only define get_proto_defrag_hook() if necessary"). Thanks, Daniel