Re: [PATCH 2/2] drivers: net: replace `kernel::c_str!` with C-Strings
From: Tamir Duberstein
Date: Tue Dec 30 2025 - 06:27:53 EST
On Tue, Dec 30, 2025 at 5:40 AM Paolo Abeni <pabeni@xxxxxxxxxx> wrote:
>
> On 12/22/25 1:32 PM, Tamir Duberstein wrote:
> > From: Tamir Duberstein <tamird@xxxxxxxxx>
> >
> > C-String literals were added in Rust 1.77. Replace instances of
> > `kernel::c_str!` with C-String literals where possible.
> >
> > Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> > Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> > Reviewed-by: Benno Lossin <lossin@xxxxxxxxxx>
> > Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx>
> > ---
> > drivers/net/phy/ax88796b_rust.rs | 7 +++----
> > drivers/net/phy/qt2025.rs | 5 ++---
> > 2 files changed, 5 insertions(+), 7 deletions(-)
>
> It's not clear to me if this is targeting the net-next tree. In such case:
>
> ## Form letter - net-next-closed
>
> The net-next tree is closed for new drivers, features, code refactoring
> and optimizations due to the merge window and the winter break. We are
> currently accepting bug fixes only.
>
> Please repost when net-next reopens after Jan 2nd.
>
> RFC patches sent for review only are obviously welcome at any time.
Yes, this is targeting net-next (unless you folks are OK with it going
through rust-next, which is also OK with me). Thank you for including
the date to resend.