bpf: Fix build warning regarding missing prototypes
authorJean-Philippe Menil <jpmenil@gmail.com>
Fri, 27 Mar 2020 20:47:13 +0000 (21:47 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 28 Mar 2020 17:13:18 +0000 (18:13 +0100)
commite9ff9d52540a53ce8c9eff5bf8b66467fe81eb2b
tree4d1180ad9c48217810d79502e5563101c3c27530
parent291cfe365bd3d5002a9c49e9fca8f30136eebc28
bpf: Fix build warning regarding missing prototypes

Fix build warnings when building net/bpf/test_run.o with W=1 due
to missing prototype for bpf_fentry_test{1..6}.

Instead of declaring prototypes, turn off warnings with
__diag_{push,ignore,pop} as pointed out by Alexei.

Signed-off-by: Jean-Philippe Menil <jpmenil@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200327204713.28050-1-jpmenil@gmail.com
net/bpf/test_run.c