Re: [PATCH] rust: macros: add if_cfg! macro for config-based conditionals

From: Miguel Ojeda

Date: Tue Jan 20 2026 - 14:55:36 EST


On Tue, Jan 20, 2026 at 8:49 PM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> I don't think this reached the mailing list, since it has HTML inside.

By the way, the Suggested-by tag seems strange:

Suggested-by: Rust-for-Linux Issue #1183
<https://github.com/Rust-for-Linux/linux/issues/1183>

It is meant to mention humans, not the issue itself, i.e. please see:

https://docs.kernel.org/process/submitting-patches.html#using-reported-by-tested-by-reviewed-by-suggested-by-and-fixes

Similarly, the Signed-off-by is meant to be (typically) your real name
(I am assuming it is your nick from GitHub -- apologies if not).

By the way, was this assisted by AI? (I am asking due to the GitHub PR
style etc.) If so, the kernel will likely soon require mention it in
the commit message, please see:

https://lore.kernel.org/all/20260119200418.89541-1-dave.hansen@xxxxxxxxxxxxxxx/

I hope that helps -- thanks for the patch and welcome!

Cheers,
Miguel