diff options
author | Alexei Starovoitov <ast@kernel.org> | 2020-04-28 15:30:48 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-04-28 15:31:59 -0700 |
commit | 9b329d0dbe413bf46eb5010edd06b3076960a60a (patch) | |
tree | bef5d38593986461a5a834c644b3935dec1a97e5 | |
parent | a6bbdf2e750f245d219d39f3c3d06ace2c5871e6 (diff) | |
download | linux-9b329d0dbe413bf46eb5010edd06b3076960a60a.tar.bz2 |
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>
-rw-r--r-- | tools/testing/selftests/bpf/progs/test_sysctl_prog.c | 2 |
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; |