Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4516476rwn; Sun, 11 Sep 2022 14:08:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7JSXnmPANnnU/gaePrp22ZinPixLumawpDHazksZ9iTMzvogbOlrSEDot+8SO74syAwjqS X-Received: by 2002:a05:6402:430a:b0:451:d8ed:b87e with SMTP id m10-20020a056402430a00b00451d8edb87emr1311416edc.246.1662930536274; Sun, 11 Sep 2022 14:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662930536; cv=none; d=google.com; s=arc-20160816; b=qXhdeclX7LJCOc44mxBP2NLyutsgO29qiqXRCw7Uj4pdd4s4KlfZ2Z3BBqAZm3bHH8 pep/ABPxmmiwjUgyAYKJv1VnS5LN+vnfEiD8TJ+uVvGbXRre2Jdaue4/ro09+WAXGngd BtNd0lVLpuYEAMt0HSMPGcUbFZaHmXMzOQdV/H98quyDgGzRdmjdWiibrg6fH8pLK6hT ktS1ehvKUm1xe6irn/46VZ01RcScMpYqqV18/prxu+S0g8DevaI/2Q4RUqEej/Ou8tzb pHAiPk7byyZgsGsGIv4YF4coYQT9JRCPJvJ21Em0KdEuQIgzQfA8ZCgXOBNdzQR1XNFX VPYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZVQHM/37BbrOGPiFeLtiNZICTr76UsNj+DYuPTvsb8Q=; b=B+opUlN1LUwiao6Ne8aWgR8eMYP45NBafOlp9nyUsN4dA3djdj+sFdl5JlqFqABeX2 4a3nts5kKG+acKdPEy4UH0FflQG1fBQCb71+x197y8w2XTiAV6cIitb++tmGo2myweBA orSvC9piiRLyj7Q376zr6JhpjCYIEEbvehXOXQrDOeE5k5K73I4hj0bYEXju0PSLIFq+ 9nLZsB37nB/jv3obvu+t6fdJeSpoy/bEkzgOy93hAhPaLZQrBISSHlF5e6OzcEP1VGen ktSOWQ/WjNt/E+w1i4BE5R2lAuIw1NjufEyZq3pdZUt04Ksh3Zm5mund9HK/uN1rUjKt uPhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RE50kfvR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz9-20020a1709077d8900b007308fcad6d2si4982308ejc.358.2022.09.11.14.08.21; Sun, 11 Sep 2022 14:08: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=@gmail.com header.s=20210112 header.b=RE50kfvR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229615AbiIKUs1 (ORCPT + 99 others); Sun, 11 Sep 2022 16:48:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbiIKUsZ (ORCPT ); Sun, 11 Sep 2022 16:48:25 -0400 Received: from mail-il1-x144.google.com (mail-il1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB46622BFC; Sun, 11 Sep 2022 13:48:24 -0700 (PDT) Received: by mail-il1-x144.google.com with SMTP id l16so3626489ilj.2; Sun, 11 Sep 2022 13:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=ZVQHM/37BbrOGPiFeLtiNZICTr76UsNj+DYuPTvsb8Q=; b=RE50kfvR/4MBOCxWXWbyfeWyAOuv3CbuiaLU7BMsyghIreYzCGstvna7nzetMmdNVT Gt0EnZWy+hhZWdPO/qkwuo1IP2xsnPHlAEpWuZmvZ6trJP6d/tnrBtQx7K1AW2CPgIq5 5Bj/9wvyD27kxFExBucubc/D8uCzJ9HCh3ndqqKBWAH1jjtfcz/4GVNoB+0GpyKNM2SR MJYikIp66vTwOZ915PwxP5PZZIut6ucG7vZ7AdEbEC6IrdtU7vfewJQko5F91HrvvkDJ jkPcVOAgFzg4tom5e4rFX85P+QjNKecE9ulprVilfILVcUKTiwnLI/m9F0CM0YEbnHkd nrLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=ZVQHM/37BbrOGPiFeLtiNZICTr76UsNj+DYuPTvsb8Q=; b=r/vMRqJ10U+tFhTIsWXAhu3tVUnqpxEcPOYuA5A3UpzJCTK/2dR6TT8L7E2L5D+v1X x9WzNb3bNJhh/BLx4QSA7eV/EzeNU6AxuhuhpMJDF2ntc/tewcoqoauGBPbEIgGQyLu3 Iqf4i30Nhf4LjrFoMhWC6B7vxwWlB7DQumL6JM+EAs8YDu6WwXgJHiSipwHZxj9ZQu2K SR4XORAnoQYegQjFQMK7yCSdUk41GcKb3DNTlGf/zkS3jueZ691xStVBDITCQTklUlSn fABSorfMtRngwYilcjZsU958VSLeOywNFmZ5qZtHXQKb1rzcd0MzZL0XJAFtZWhOorkZ PLPg== X-Gm-Message-State: ACgBeo0Wie0uJDl7gS3oBGx36YhYwfWJHjY23w83CH4Iq1V2lgEHXu1o p3QuzMc1e/UJ6yBX57XWFZ4PpXNkUZo53AjN6bk= X-Received: by 2002:a92:cbcf:0:b0:2f3:b515:92d with SMTP id s15-20020a92cbcf000000b002f3b515092dmr2734086ilq.91.1662929304245; Sun, 11 Sep 2022 13:48:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kumar Kartikeya Dwivedi Date: Sun, 11 Sep 2022 22:47:46 +0200 Message-ID: Subject: Re: [PATCH bpf-next] bpf: Move nf_conn extern declarations to filter.h To: Daniel Xu Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, pablo@netfilter.org, fw@strlen.de, toke@kernel.org, martin.lau@linux.dev, netfilter-devel@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Sun, 11 Sept 2022 at 20:20, Daniel Xu wrote: > > We're seeing the following new warnings on netdev/build_32bit and > netdev/build_allmodconfig_warn CI jobs: > > ../net/core/filter.c:8608:1: warning: symbol > 'nf_conn_btf_access_lock' was not declared. Should it be static? > ../net/core/filter.c:8611:5: warning: symbol 'nfct_bsa' was not > declared. Should it be static? > > Fix by ensuring extern declaration is present while compiling filter.o. > > Signed-off-by: Daniel Xu > --- Acked-by: Kumar Kartikeya Dwivedi > include/linux/filter.h | 6 ++++++ > include/net/netfilter/nf_conntrack_bpf.h | 7 +------ > 2 files changed, 7 insertions(+), 6 deletions(-) > > diff --git a/include/linux/filter.h b/include/linux/filter.h > index 527ae1d64e27..96de256b2c8d 100644 > --- a/include/linux/filter.h > +++ b/include/linux/filter.h > @@ -567,6 +567,12 @@ struct sk_filter { > > DECLARE_STATIC_KEY_FALSE(bpf_stats_enabled_key); > > +extern struct mutex nf_conn_btf_access_lock; > +extern int (*nfct_bsa)(struct bpf_verifier_log *log, const struct btf *btf, > + const struct btf_type *t, int off, int size, > + enum bpf_access_type atype, u32 *next_btf_id, > + enum bpf_type_flag *flag); > + > typedef unsigned int (*bpf_dispatcher_fn)(const void *ctx, > const struct bpf_insn *insnsi, > unsigned int (*bpf_func)(const void *, > diff --git a/include/net/netfilter/nf_conntrack_bpf.h b/include/net/netfilter/nf_conntrack_bpf.h > index a61a93d1c6dc..cf2c0423d174 100644 > --- a/include/net/netfilter/nf_conntrack_bpf.h > +++ b/include/net/netfilter/nf_conntrack_bpf.h > @@ -5,6 +5,7 @@ > > #include > #include > +#include > #include > #include > > @@ -14,12 +15,6 @@ > extern int register_nf_conntrack_bpf(void); > extern void cleanup_nf_conntrack_bpf(void); > > -extern struct mutex nf_conn_btf_access_lock; > -extern int (*nfct_bsa)(struct bpf_verifier_log *log, const struct btf *btf, > - const struct btf_type *t, int off, int size, > - enum bpf_access_type atype, u32 *next_btf_id, > - enum bpf_type_flag *flag); > - > #else > > static inline int register_nf_conntrack_bpf(void) > -- > 2.37.1 >