[PATCH] rust: bug: fix `dead_code` warning in `warn_on!`

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Sat Aug 8 20:01:09 PDT 2026


On Sun, Aug 9, 2026 at 2:50 AM FUJITA Tomonori <tomo at flapping.org> wrote:
>
> Then `jump_label.rs` needs the same treatment?
>
> `arch_static_branch!` embeds the generated arch asm too. It is not a
> problem today only because, like `warn_on!` until now, it has no user
> inside the `kernel` crate itself.

Yeah, I think we should do it to avoid surprises later.

Good eyes!

Cheers,
Miguel



More information about the linux-arm-kernel mailing list