Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/bpf: Convert comma to semicolon

Replace comma between expressions with semicolons.

Using a ',' in place of a ';' can have unintended side effects.
Although that is not the case here, it is seems best to use ';'
unless ',' is intended.

Found by inspection.
No functional change intended.
Compile tested only.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Amery Hung <ameryhung@gmail.com>
Link: https://lore.kernel.org/bpf/20250401061546.1990156-1-nichen@iscas.ac.cn

authored by

Chen Ni and committed by
Andrii Nakryiko
c9661394 893c3938

+2 -2
+2 -2
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
··· 1340 1340 *insn++ = BPF_STX_MEM(BPF_DW, BPF_REG_6, BPF_REG_7, offsetof(struct st_ops_args, a)); 1341 1341 *insn++ = BPF_JMP_IMM(BPF_JA, 0, 0, 2); 1342 1342 *insn++ = BPF_MOV64_REG(BPF_REG_1, BPF_REG_0); 1343 - *insn++ = BPF_CALL_KFUNC(0, bpf_cgroup_release_id), 1343 + *insn++ = BPF_CALL_KFUNC(0, bpf_cgroup_release_id); 1344 1344 *insn++ = BPF_MOV64_REG(BPF_REG_1, BPF_REG_8); 1345 1345 *insn++ = prog->insnsi[0]; 1346 1346 ··· 1379 1379 *insn++ = BPF_STX_MEM(BPF_DW, BPF_REG_1, BPF_REG_6, offsetof(struct st_ops_args, a)); 1380 1380 *insn++ = BPF_JMP_IMM(BPF_JA, 0, 0, 2); 1381 1381 *insn++ = BPF_MOV64_REG(BPF_REG_1, BPF_REG_0); 1382 - *insn++ = BPF_CALL_KFUNC(0, bpf_cgroup_release_id), 1382 + *insn++ = BPF_CALL_KFUNC(0, bpf_cgroup_release_id); 1383 1383 *insn++ = BPF_MOV64_REG(BPF_REG_0, BPF_REG_6); 1384 1384 *insn++ = BPF_ALU64_IMM(BPF_MUL, BPF_REG_0, 2); 1385 1385 *insn++ = BPF_EXIT_INSN();