Re: [PATCH bpf-next] bpf: Add __printf attribute to bpf_diag_source()
From: Alexei Starovoitov
Date: Mon Oct 19 2026 - 20:39:14 EST
On Mon, Oct 19, 2026 at 12:59 PM Adrián García Casado <adriangarciacasado42@xxxxxxxxx> wrote:
> @@ -794,6 +794,7 @@ static void diag_print_insn_context(struct bpf_verifier_env *env, u32 insn_idx,
> }
> }
>
> +__printf(4, 5)
> static void bpf_diag_source(struct bpf_verifier_env *env, u32 insn_idx, const char *label,
> const char *fmt, ...)
1. This doesn't apply to bpf-next.
2. The warning was fixed a month ago:
commit 7f2b0b57a8d7 ("bpf: Add printf attributes").
pw-bot: cr