]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: configfs: replace `kernel::c_str!` with C-Strings
authorTamir Duberstein <tamird@gmail.com>
Mon, 22 Dec 2025 12:12:20 +0000 (13:12 +0100)
committerAndreas Hindborg <a.hindborg@kernel.org>
Thu, 15 Jan 2026 08:26:49 +0000 (09:26 +0100)
commit1d40cb05e077bb294f128c6a52630b93e452a8ed
treed00b4a177bcfa3b2fcf413af08d921afa9a8999f
parent9ace4753a5202b02191d54e9fdf7f9e3d02b85eb
rust: configfs: replace `kernel::c_str!` with C-Strings

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@linuxfoundation.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Acked-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20251222-cstr-configfs-v1-1-cc1665c51c43@gmail.com
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
rust/kernel/configfs.rs
samples/rust/rust_configfs.rs