Re: [PATCH] rust: lib: add if_cfg! macro for conditional compilation
From: Greg Kroah-Hartman
Date: Thu Aug 14 2025 - 01:57:13 EST
On Thu, Aug 14, 2025 at 01:38:26AM +0500, Areej wrote:
> Add a new if_cfg! macro to simplify conditional compilation using
> cfg attributes. This macro expands to paired #[cfg(cond)] and
> #[cfg(not(cond))] blocks, allowing compile-time selection between
> code branches in both expression and statement contexts.
Nit, trailing whitespace in your text :(
>
> Suggested-by: Benno Lossin <lossin@xxxxxxxxxx>
> Link: https://github.com/Rust-for-Linux/linux/issues/1183
> Signed-off-by: Areej Hamid <areejhamid8560@xxxxxxxxx>
From: line does not match up with this text :(
thanks,
greg k-h