Skip to content
Snippets Groups Projects
Commit fdf21497 authored by Daniel Xu's avatar Daniel Xu Committed by Martin KaFai Lau
Browse files

bpf: Move nf_conn extern declarations to filter.h


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.

Fixes: 864b656f ("bpf: Add support for writing to nf_conn:mark")
Signed-off-by: default avatarDaniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/r/2bd2e0283df36d8a4119605878edb1838d144174.1663683114.git.dxu@dxuuu.xyz


Signed-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
parent 5a090aa3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment