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

2025-06-23 Thread Viresh Kumar
On 19-06-25, 11:06, Tamir Duberstein wrote: > drivers/cpufreq/rcpufreq_dt.rs| 5 ++--- > rust/kernel/clk.rs| 6 ++ > rust/kernel/cpufreq.rs| 3 +-- Acked-by: Viresh Kumar -- viresh

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

2025-06-21 Thread Stephen Boyd
Quoting Tamir Duberstein (2025-06-19 08:06:28) > 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

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

2025-06-19 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