Skip to content

Commit

Permalink
selftests/bpf: fix test_sysctl_prog with alu32
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexei Starovoitov committed Apr 28, 2020
1 parent a6bbdf2 commit 9b329d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/bpf/progs/test_sysctl_prog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9b329d0

Please sign in to comment.