aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2018-02-20 22:07:33 +0000
committerDaniel Borkmann <[email protected]>2018-02-22 00:11:20 +0000
commita7dcdf6ea1b264ee7655a8cafe844f06eed3906a (patch)
tree04e12e0ba1e022228abb6b07df11fd7dcdac0e35 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentamd-xgbe: Restore PCI interrupt enablement setting on resume (diff)
downloadkernel-a7dcdf6ea1b264ee7655a8cafe844f06eed3906a.tar.gz
kernel-a7dcdf6ea1b264ee7655a8cafe844f06eed3906a.zip
bpf: clean up unused-variable warning
The only user of this variable is inside of an #ifdef, causing a warning without CONFIG_INET: net/core/filter.c: In function '____bpf_sock_ops_cb_flags_set': net/core/filter.c:3382:6: error: unused variable 'val' [-Werror=unused-variable] int val = argval & BPF_SOCK_OPS_ALL_CB_FLAGS; This replaces the #ifdef with a nicer IS_ENABLED() check that makes the code more readable and avoids the warning. Fixes: b13d88072172 ("bpf: Adds field bpf_sock_ops_cb_flags to tcp_sock") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions