Re: [PATCH 2/2] drivers: net: replace `kernel::c_str!` with C-Strings
From: Tamir Duberstein <tamird@kernel.org>
Date: 2025-12-30 11:27:53
Also in:
lkml, rust-for-linux
From: Tamir Duberstein <tamird@kernel.org>
Date: 2025-12-30 11:27:53
Also in:
lkml, rust-for-linux
On Tue, Dec 30, 2025 at 5:40 AM Paolo Abeni [off-list ref] wrote:
On 12/22/25 1:32 PM, Tamir Duberstein wrote:quoted
From: Tamir Duberstein <redacted> 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@linuxfoundation.org> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Benno Lossin <lossin@kernel.org> Signed-off-by: Tamir Duberstein <redacted> --- 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.