[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DFTIA7Y3MZFR.3LEHVWENE4Q4R@garyguo.net>
Date: Tue, 20 Jan 2026 15:02:26 +0000
From: "Gary Guo" <gary@...yguo.net>
To: "Ryan Foster" <foster.ryan.r@...il.com>, <gary@...yguo.net>
Cc: <a.hindborg@...nel.org>, <aliceryhl@...gle.com>,
<bjorn3_gh@...tonmail.com>, <boqun.feng@...il.com>, <dakr@...nel.org>,
<gregkh@...uxfoundation.org>, <linux-fsdevel@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <lossin@...nel.org>, <ojeda@...nel.org>,
<rafael@...nel.org>, <rust-for-linux@...r.kernel.org>, <tmgross@...ch.edu>
Subject: Re: [PATCH] rust: replace `kernel::c_str!` with C-Strings in
seq_file and device
On Tue Jan 20, 2026 at 2:59 PM GMT, Ryan Foster wrote:
> C-String literals were added in Rust 1.77. Replace instances of
> `kernel::c_str!` with C-String literals where possible.
>
> This patch updates seq_file and device modules to use the native
> C-string literal syntax (c"...") instead of the kernel::c_str! macro.
>
> While at it, convert imports to the kernel vertical import style.
>
> Signed-off-by: Ryan Foster <foster.ryan.r@...il.com>
Reviewed-by: Gary Guo <gary@...yguo.net>
> ---
> rust/kernel/device.rs | 19 ++++++++++++-------
> rust/kernel/seq_file.rs | 12 ++++++++++--
> 2 files changed, 22 insertions(+), 9 deletions(-)
Powered by blists - more mailing lists