Skip to content

Commit 9b329d0

Browse files
author
Alexei Starovoitov
committed
selftests/bpf: fix test_sysctl_prog with alu32
Similar to commit b7a0d65 ("bpf, testing: Workaround a verifier failure for test_progs") fix test_sysctl_prog.c as well. Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent a6bbdf2 commit 9b329d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/testing/selftests/bpf/progs/test_sysctl_prog.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int sysctl_tcp_mem(struct bpf_sysctl *ctx)
4545
unsigned long tcp_mem[3] = {0, 0, 0};
4646
char value[MAX_VALUE_STR_LEN];
4747
unsigned char i, off = 0;
48-
int ret;
48+
volatile int ret;
4949

5050
if (ctx->write)
5151
return 0;

0 commit comments

Comments
 (0)