Skip to content
Commit e9ff9d52 authored by Jean-Philippe Menil's avatar Jean-Philippe Menil Committed by Daniel Borkmann
Browse files

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: default avatarJean-Philippe Menil <jpmenil@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200327204713.28050-1-jpmenil@gmail.com
parent 291cfe36
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment