diff options
author | Andrii Nakryiko | 2021-03-08 20:43:22 -0800 |
---|---|---|
committer | Daniel Borkmann | 2021-03-10 00:11:16 +0100 |
commit | 11d39cfeecfc9d92a5faa2a55c228e796478e0cb (patch) | |
tree | 070c04c360fe9597311e9e6fc8b8be4046d5f38b /net/xdp | |
parent | 34c9a7c5b70cdbc58540a0f1c984c11fd185e160 (diff) |
selftests/bpf: Fix compiler warning in BPF_KPROBE definition in loop6.c
Add missing return type to BPF_KPROBE definition. Without it, compiler
generates the following warning:
progs/loop6.c:68:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
BPF_KPROBE(trace_virtqueue_add_sgs, void *unused, struct scatterlist **sgs,
^
1 warning generated.
Fixes: 86a35af628e5 ("selftests/bpf: Add a verifier scale test with unknown bounded loop")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210309044322.3487636-1-andrii@kernel.org
Diffstat (limited to 'net/xdp')
0 files changed, 0 insertions, 0 deletions