Skip to content

Commit 4f5d4a1

Browse files
Chen Niakpm00
authored andcommitted
test_bpf: convert comma to semicolon
Replace commas between expression statements with semicolons. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Chen Ni <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Andrii Nakryiko <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Eduard Zingerman <[email protected]> Cc: Hao Luo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: John Fastabend <[email protected]> Cc: KP Singh <[email protected]> Cc: Martin KaFai Lau <[email protected]> Cc: Song Liu <[email protected]> Cc: Stanislav Fomichev <[email protected]> Cc: Yonghong Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 73db3ab commit 4f5d4a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/test_bpf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ static int __bpf_emit_cmpxchg32(struct bpf_test *self, void *arg,
17401740
/* Result unsuccessful */
17411741
insns[i++] = BPF_STX_MEM(BPF_W, R10, R1, -4);
17421742
insns[i++] = BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, R10, R2, -4);
1743-
insns[i++] = BPF_ZEXT_REG(R0), /* Zext always inserted by verifier */
1743+
insns[i++] = BPF_ZEXT_REG(R0); /* Zext always inserted by verifier */
17441744
insns[i++] = BPF_LDX_MEM(BPF_W, R3, R10, -4);
17451745

17461746
insns[i++] = BPF_JMP32_REG(BPF_JEQ, R1, R3, 2);
@@ -1754,7 +1754,7 @@ static int __bpf_emit_cmpxchg32(struct bpf_test *self, void *arg,
17541754
/* Result successful */
17551755
i += __bpf_ld_imm64(&insns[i], R0, dst);
17561756
insns[i++] = BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, R10, R2, -4);
1757-
insns[i++] = BPF_ZEXT_REG(R0), /* Zext always inserted by verifier */
1757+
insns[i++] = BPF_ZEXT_REG(R0); /* Zext always inserted by verifier */
17581758
insns[i++] = BPF_LDX_MEM(BPF_W, R3, R10, -4);
17591759

17601760
insns[i++] = BPF_JMP32_REG(BPF_JEQ, R2, R3, 2);

0 commit comments

Comments
 (0)