]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: str: update `c_str!` documentation
authorTamir Duberstein <tamird@kernel.org>
Mon, 9 Mar 2026 17:01:57 +0000 (13:01 -0400)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 15 Mar 2026 19:28:45 +0000 (20:28 +0100)
commit1353b8f32c49235d5c66bad3e197025c26d1684e
treeee26021eb3caa5c7e05510c5b42f4df0f8bfe636
parentb3d161f22ba9b2dc16bb82aa2b8515d98c99624f
rust: str: update `c_str!` documentation

Now that all literals are C-Strings, update the documentation to explain
that use of this macro should be limited to non-literal strings.

Link: https://github.com/Rust-for-Linux/linux/issues/1075
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Tamir Duberstein <tamird@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260309-cstr-rename-macro-v2-1-25f7de75944e@kernel.org
[ Apply sentence case to comment. Reword title. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/str.rs