[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAADnVQ+j8Q5+2KSsaddj3nmU1EkuRAt8XwM=zcSrfQfY+A1PsA@mail.gmail.com>
Date: Mon, 19 Jan 2026 09:16:36 -0800
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Sun Jian <sun.jian.kdev@...il.com>
Cc: Florian Westphal <fw@...len.de>, Pablo Neira Ayuso <pablo@...filter.org>, Phil Sutter <phil@....cc>,
Daniel Borkmann <daniel@...earbox.net>, Alexei Starovoitov <ast@...nel.org>,
netfilter-devel <netfilter-devel@...r.kernel.org>,
Network Development <netdev@...r.kernel.org>, bpf <bpf@...r.kernel.org>
Subject: Re: [PATCH] netfilter: nf_flow_table_bpf: add prototype for bpf_xdp_flow_lookup()
On Mon, Jan 19, 2026 at 1:16 AM Sun Jian <sun.jian.kdev@...il.com> wrote:
>
> Sparse reports:
>
> netfilter/nf_flow_table_bpf.c:58:45:
> symbol 'bpf_xdp_flow_lookup' was not declared. Should it be static?
>
> bpf_xdp_flow_lookup() is exported as a __bpf_kfunc and must remain
> non-static. Add a forward declaration to provide an explicit prototype
> , only to silence the sparse warning.
No. Ignore the warning. Sparse is incorrect.
We have hundreds of such bogus warnings. Do NOT attempt to send
more patches to "fix" them.
pw-bot: cr
Powered by blists - more mailing lists