On Sat, Jan 3, 2026 at 9:24 PM Tamir Duberstein <tamird@kernel.org> wrote:
>
> C-String literals were added in Rust 1.77. Replace instances of
> `kernel::c_str!` with C-String literals where possible.
>
> Signed-off-by: Tamir Duberstein <tamird@gmail.com>
@Jakub are you able to take this through net-next?
> ---
> Changes in v2:
> - Pick up Tomo and Daniel's tags.
> - Link to v1: https://patch.msgid.link/20251222-cstr-net-v1-0-cd9e30a5467e@gmail.com
>
> ---
> Tamir Duberstein (2):
> rust: net: replace `kernel::c_str!` with C-Strings
> drivers: net: replace `kernel::c_str!` with C-Strings
>
> drivers/net/phy/ax88796b_rust.rs | 7 +++----
> drivers/net/phy/qt2025.rs | 5 ++---
> rust/kernel/net/phy.rs | 6 ++----
> 3 files changed, 7 insertions(+), 11 deletions(-)
> ---
> base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
> change-id: 20251222-cstr-net-3bfd7b35acc1
>
> Best regards,
> --
> Tamir Duberstein <tamird@gmail.com>
>