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

2025-06-02 Thread Tamir Duberstein
On Mon, Jun 2, 2025 at 4:45 AM Alice Ryhl wrote: > > On Fri, May 30, 2025 at 08:27:45AM -0400, 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

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

2025-06-02 Thread Alice Ryhl
On Fri, May 30, 2025 at 08:27:45AM -0400, 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. > > Closes: https://github.com/R

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

2025-05-30 Thread Tamir Duberstein
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. Closes: https://github.com/Rust-for-Linux/linux/issues/1075 Signed-off-by: Tamir Duberstein --- driver