[PATCH v13 4/5] rust: replace `kernel::c_str!` with C-Strings

Tamir Duberstein tamird at gmail.com
Fri Jul 4 19:38:30 UTC 2025


On Fri, Jul 4, 2025 at 9:01 AM Benno Lossin <lossin at kernel.org> wrote:
>
> On Tue Jul 1, 2025 at 6:49 PM CEST, Tamir Duberstein wrote:
> > C-String literals were added in Rust 1.77. Replace instances of
> > `kernel::c_str!` with C-String literals where possible and rename
> > `kernel::c_str!` to `str_to_cstr!` to clarify its intended use.
>
> These two things can also be split? And it should also be possible to do
> this by-subsystem, right?

Yes.


More information about the dri-devel mailing list