]> Git Repo - J-linux.git/commitdiff
test_bpf: convert comma to semicolon
authorChen Ni <[email protected]>
Tue, 9 Jul 2024 03:43:23 +0000 (11:43 +0800)
committerAndrew Morton <[email protected]>
Fri, 12 Jul 2024 23:39:52 +0000 (16:39 -0700)
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]>
lib/test_bpf.c

index 207ff87194db74cd00edba9e96ee55c14727ef99..a6edbe842f6504760d146c1acbda8eb3e5c5cafa 100644 (file)
@@ -1740,7 +1740,7 @@ static int __bpf_emit_cmpxchg32(struct bpf_test *self, void *arg,
        /* Result unsuccessful */
        insns[i++] = BPF_STX_MEM(BPF_W, R10, R1, -4);
        insns[i++] = BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, R10, R2, -4);
-       insns[i++] = BPF_ZEXT_REG(R0), /* Zext always inserted by verifier */
+       insns[i++] = BPF_ZEXT_REG(R0); /* Zext always inserted by verifier */
        insns[i++] = BPF_LDX_MEM(BPF_W, R3, R10, -4);
 
        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,
        /* Result successful */
        i += __bpf_ld_imm64(&insns[i], R0, dst);
        insns[i++] = BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, R10, R2, -4);
-       insns[i++] = BPF_ZEXT_REG(R0), /* Zext always inserted by verifier */
+       insns[i++] = BPF_ZEXT_REG(R0); /* Zext always inserted by verifier */
        insns[i++] = BPF_LDX_MEM(BPF_W, R3, R10, -4);
 
        insns[i++] = BPF_JMP32_REG(BPF_JEQ, R2, R3, 2);
This page took 0.063193 seconds and 4 git commands to generate.