summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2020-04-29 00:30:48 +0200
committerAlexei Starovoitov <ast@kernel.org>2020-04-29 00:31:59 +0200
commit9b329d0dbe413bf46eb5010edd06b3076960a60a (patch)
treebef5d38593986461a5a834c644b3935dec1a97e5 /tools/testing/selftests/bpf
parentlibbpf: Remove unneeded semicolon in btf_dump_emit_type (diff)
downloadlinux-9b329d0dbe413bf46eb5010edd06b3076960a60a.tar.xz
linux-9b329d0dbe413bf46eb5010edd06b3076960a60a.zip
selftests/bpf: fix test_sysctl_prog with alu32
Similar to commit b7a0d65d80a0 ("bpf, testing: Workaround a verifier failure for test_progs") fix test_sysctl_prog.c as well. Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf')
-rw-r--r--tools/testing/selftests/bpf/progs/test_sysctl_prog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_sysctl_prog.c b/tools/testing/selftests/bpf/progs/test_sysctl_prog.c
index 2d0b0b82a78a..50525235380e 100644
--- a/tools/testing/selftests/bpf/progs/test_sysctl_prog.c
+++ b/tools/testing/selftests/bpf/progs/test_sysctl_prog.c
@@ -45,7 +45,7 @@ int sysctl_tcp_mem(struct bpf_sysctl *ctx)
unsigned long tcp_mem[3] = {0, 0, 0};
char value[MAX_VALUE_STR_LEN];
unsigned char i, off = 0;
- int ret;
+ volatile int ret;
if (ctx->write)
return 0;