diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-03-11 02:09:01 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-03-13 20:55:07 +0100 |
commit | dcce11d545cc5d04c3fb529a8e2a0da987389139 (patch) | |
tree | d235ecfa4fa2b74ecdb43d8371d8fac296ec804a /tools/bpf/bpftool/Makefile | |
parent | bpf_helpers_doc.py: Fix warning when compiling bpftool (diff) | |
download | linux-dcce11d545cc5d04c3fb529a8e2a0da987389139.tar.xz linux-dcce11d545cc5d04c3fb529a8e2a0da987389139.zip |
bpf: Add missing annotations for __bpf_prog_enter() and __bpf_prog_exit()
Sparse reports a warning at __bpf_prog_enter() and __bpf_prog_exit()
warning: context imbalance in __bpf_prog_enter() - wrong count at exit
warning: context imbalance in __bpf_prog_exit() - unexpected unlock
The root cause is the missing annotation at __bpf_prog_enter()
and __bpf_prog_exit()
Add the missing __acquires(RCU) annotation
Add the missing __releases(RCU) annotation
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200311010908.42366-2-jbi.octave@gmail.com
Diffstat (limited to 'tools/bpf/bpftool/Makefile')
0 files changed, 0 insertions, 0 deletions