All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next] bpf: Avoid unnecessary use of comma operator in verifier
@ 2023-12-21 17:03 Simon Horman
  2023-12-21 20:30 ` David Marchevsky
  2023-12-21 21:50 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Simon Horman @ 2023-12-21 17:03 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann
  Cc: John Fastabend, Andrii Nakryiko, Martin KaFai Lau, Song Liu,
	Yonghong Song, KP Singh, Stanislav Fomichev, Hao Luo, Jiri Olsa,
	Nathan Chancellor, Nick Desaulniers, Bill Wendling, Justin Stitt,
	bpf, llvm

Although it does not seem to have any untoward side-effects,
the use of ';' to separate to assignments seems more appropriate than ','.

Flagged by clang-17 -Wcomma

No functional change intended.
Compile tested only.

Signed-off-by: Simon Horman <horms@kernel.org>
---
 kernel/bpf/verifier.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index f13008d27f35..a376eb609c41 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -9616,7 +9616,7 @@ static int set_find_vma_callback_state(struct bpf_verifier_env *env,
 	callee->regs[BPF_REG_2].type = PTR_TO_BTF_ID;
 	__mark_reg_known_zero(&callee->regs[BPF_REG_2]);
 	callee->regs[BPF_REG_2].btf =  btf_vmlinux;
-	callee->regs[BPF_REG_2].btf_id = btf_tracing_ids[BTF_TRACING_TYPE_VMA],
+	callee->regs[BPF_REG_2].btf_id = btf_tracing_ids[BTF_TRACING_TYPE_VMA];
 
 	/* pointer to stack or null */
 	callee->regs[BPF_REG_3] = caller->regs[BPF_REG_4];


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH bpf-next] bpf: Avoid unnecessary use of comma operator in verifier
  2023-12-21 17:03 [PATCH bpf-next] bpf: Avoid unnecessary use of comma operator in verifier Simon Horman
@ 2023-12-21 20:30 ` David Marchevsky
  2023-12-21 21:50 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: David Marchevsky @ 2023-12-21 20:30 UTC (permalink / raw)
  To: Simon Horman, Alexei Starovoitov, Daniel Borkmann
  Cc: John Fastabend, Andrii Nakryiko, Martin KaFai Lau, Song Liu,
	Yonghong Song, KP Singh, Stanislav Fomichev, Hao Luo, Jiri Olsa,
	Nathan Chancellor, Nick Desaulniers, Bill Wendling, Justin Stitt,
	bpf, llvm

On 12/21/23 12:03 PM, Simon Horman wrote:
> Although it does not seem to have any untoward side-effects,
> the use of ';' to separate to assignments seems more appropriate than ','.
> 
> Flagged by clang-17 -Wcomma
> 
> No functional change intended.
> Compile tested only.
> 
> Signed-off-by: Simon Horman <horms@kernel.org>
> ---

Reviewed-by: Dave Marchevsky <davemarchevsky@fb.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH bpf-next] bpf: Avoid unnecessary use of comma operator in verifier
  2023-12-21 17:03 [PATCH bpf-next] bpf: Avoid unnecessary use of comma operator in verifier Simon Horman
  2023-12-21 20:30 ` David Marchevsky
@ 2023-12-21 21:50 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-12-21 21:50 UTC (permalink / raw)
  To: Simon Horman
  Cc: ast, daniel, john.fastabend, andrii, martin.lau, song,
	yonghong.song, kpsingh, sdf, haoluo, jolsa, nathan, ndesaulniers,
	morbo, justinstitt, bpf, llvm

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:

On Thu, 21 Dec 2023 18:03:52 +0100 you wrote:
> Although it does not seem to have any untoward side-effects,
> the use of ';' to separate to assignments seems more appropriate than ','.
> 
> Flagged by clang-17 -Wcomma
> 
> No functional change intended.
> Compile tested only.
> 
> [...]

Here is the summary with links:
  - [bpf-next] bpf: Avoid unnecessary use of comma operator in verifier
    https://git.kernel.org/bpf/bpf-next/c/5abde6246522

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-21 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-21 17:03 [PATCH bpf-next] bpf: Avoid unnecessary use of comma operator in verifier Simon Horman
2023-12-21 20:30 ` David Marchevsky
2023-12-21 21:50 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.