Re: [PATCH] samples: rust: faux: replace `kernel::c_str!` with C-Strings

From: Danilo Krummrich

Date: Tue Dec 23 2025 - 05:49:27 EST


On Tue Dec 23, 2025 at 8:40 AM CET, Tamir Duberstein wrote:
> From: Tamir Duberstein <tamird@xxxxxxxxx>
>
> C-String literals were added in Rust 1.77. Replace instances of
> `kernel::c_str!` with C-String literals where possible.
>
> Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Reviewed-by: Benno Lossin <lossin@xxxxxxxxxx>
> Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx>

Applied to driver-core-testing, thanks!

[ Use kernel vertical import style. - Danilo ]

(Please use kernel vertical import style in the future when modifying imports.
Especially in this case, where the modified line is the only import of the whole
file. Thanks!)