Skip to content
Commit be2d04d1 authored by Mathieu Malaterre's avatar Mathieu Malaterre Committed by Daniel Borkmann
Browse files

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: default avatarMathieu Malaterre <malat@debian.org>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 44edef77
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