lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJ-ks9mOs62Q8zWuH0=bKEQBFQxDopx=O4qUKjh4bWjnv8bWqw@mail.gmail.com>
Date: Tue, 20 Jan 2026 16:11:46 -0500
From: Tamir Duberstein <tamird@...nel.org>
To: Gary Guo <gary@...yguo.net>
Cc: Ryan Foster <foster.ryan.r@...il.com>, 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 10:17 AM Gary Guo <gary@...yguo.net> wrote:
>
> 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>

device.rs was done in
https://lore.kernel.org/all/20251222-cstr-driver-core-v1-0-1142a177d0fd@gmail.com/
and seq_file.rs is waiting for a maintainer's ack in
https://lore.kernel.org/all/20251222-cstr-vfs-v1-1-18e3d327cbd7@gmail.com/.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ