diff options
author | Björn Töpel <[email protected]> | 2021-11-17 13:57:08 +0100 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2021-11-17 15:38:17 +0100 |
commit | f45b2974cc0ae959a4c503a071e38a56bd64372f (patch) | |
tree | 1a1a19b0bcb48e2c61196f5a909e21f2cf90dc55 /scripts/clang-tools/gen_compile_commands.py | |
parent | 3751c3d34cd5a750c86d1c8eaf217d8faf7f9325 (diff) |
bpf, x86: Fix "no previous prototype" warning
The arch_prepare_bpf_dispatcher function does not have a prototype, and
yields the following warning when W=1 is enabled for the kernel build.
>> arch/x86/net/bpf_jit_comp.c:2188:5: warning: no previous \
prototype for 'arch_prepare_bpf_dispatcher' [-Wmissing-prototypes]
2188 | int arch_prepare_bpf_dispatcher(void *image, s64 *funcs, \
int num_funcs)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Remove the warning by adding a function declaration to include/linux/bpf.h.
Fixes: 75ccbef6369e ("bpf: Introduce BPF dispatcher")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Björn Töpel <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions