aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.c
diff options
context:
space:
mode:
authorMathieu Malaterre <[email protected]>2018-05-16 20:27:41 +0000
committerDaniel Borkmann <[email protected]>2018-05-16 22:49:17 +0000
commitbe2d04d11fd33bd46622f94619aae1596d9f9303 (patch)
tree64f6eb3bde9c91d2598a15f2744f2dbe1154afe2 /tools/lib/bpf/bpf.c
parentsamples/bpf: Decrement ttl in fib forwarding example (diff)
downloadkernel-be2d04d11fd33bd46622f94619aae1596d9f9303.tar.gz
kernel-be2d04d11fd33bd46622f94619aae1596d9f9303.zip
bpf: add __printf verification to bpf_verifier_vlog
__printf is useful to verify format and arguments. ‘bpf_verifier_vlog’ function is used twice in verifier.c in both cases the caller function already uses the __printf gcc attribute. Remove the following warning, triggered with W=1: kernel/bpf/verifier.c:176:2: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Signed-off-by: Mathieu Malaterre <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf.c')
0 files changed, 0 insertions, 0 deletions