diff options
| author | Kuniyuki Iwashima <[email protected]> | 2024-01-18 13:17:51 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-01-23 15:08:03 -0800 |
| commit | b3f086a7a136d721d112f35fe4cd7272e93cf06b (patch) | |
| tree | bb5a1af3bcae81082c1c5dc901ce4aa54fa3a93c /tools/perf/scripts/python | |
| parent | 2ce793ebe207328b1210bb53effd702740987148 (diff) | |
bpf: Define struct bpf_tcp_req_attrs when CONFIG_SYN_COOKIES=n.
kernel test robot reported the warning below:
>> net/core/filter.c:11842:13: warning: declaration of 'struct bpf_tcp_req_attrs' will not be visible outside of this function [-Wvisibility]
11842 | struct bpf_tcp_req_attrs *attrs, int attrs__sz)
| ^
1 warning generated.
struct bpf_tcp_req_attrs is defined under CONFIG_SYN_COOKIES
but used in kfunc without the config.
Let's move struct bpf_tcp_req_attrs definition outside of
CONFIG_SYN_COOKIES guard.
Fixes: e472f88891ab ("bpf: tcp: Support arbitrary SYN Cookie.")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions