diff options
author | 2025-04-28 11:34:45 +0800 | |
---|---|---|
committer | 2025-04-29 13:47:28 -0700 | |
commit | 1ce65102d2d3c54862f7b59479135168ed512cd2 (patch) | |
tree | d62ce92c34ac353f026b1e0ee3aeeea088832c81 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bnxt_en: hide CONFIG_DETECT_HUNG_TASK specific code (diff) | |
download | wireguard-linux-1ce65102d2d3c54862f7b59479135168ed512cd2.tar.xz wireguard-linux-1ce65102d2d3c54862f7b59479135168ed512cd2.zip |
selftests/bpf: Fix compilation errors
If the CONFIG_NET_SCH_BPF configuration is not enabled,
the BPF test compilation will report the following error:
In file included from progs/bpf_qdisc_fq.c:39:
progs/bpf_qdisc_common.h:17:51: error: declaration of 'struct bpf_sk_buff_ptr' will not be visible outside of this function [-Werror,-Wvisibility]
17 | void bpf_qdisc_skb_drop(struct sk_buff *p, struct bpf_sk_buff_ptr *to_free) __ksym;
| ^
progs/bpf_qdisc_fq.c:309:14: error: declaration of 'struct bpf_sk_buff_ptr' will not be visible outside of this function [-Werror,-Wvisibility]
309 | struct bpf_sk_buff_ptr *to_free)
| ^
progs/bpf_qdisc_fq.c:309:14: error: declaration of 'struct bpf_sk_buff_ptr' will not be visible outside of this function [-Werror,-Wvisibility]
progs/bpf_qdisc_fq.c:308:5: error: conflicting types for '____bpf_fq_enqueue'
Fixes: 11c701639ba9 ("selftests/bpf: Add a basic fifo qdisc test")
Signed-off-by: Feng Yang <yangfeng@kylinos.cn>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250428033445.58113-1-yangfeng59949@163.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions