[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <D7C5FC20-96FC-4E5F-858E-92405039AC11@collabora.com>
Date: Mon, 22 Dec 2025 11:37:39 -0300
From: Daniel Almeida <daniel.almeida@...labora.com>
To: Tamir Duberstein <tamird@...nel.org>
Cc: Igor Korotin <igor.korotin.linux@...il.com>,
Danilo Krummrich <dakr@...nel.org>,
Miguel Ojeda <ojeda@...nel.org>,
Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>,
Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>,
Trevor Gross <tmgross@...ch.edu>,
rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org,
Tamir Duberstein <tamird@...il.com>
Subject: Re: [PATCH 0/2] rust: i2c: replace `kernel::c_str!` with C-Strings
> On 22 Dec 2025, at 09:14, Tamir Duberstein <tamird@...nel.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@...il.com>
> ---
> Tamir Duberstein (2):
> rust: i2c: replace `kernel::c_str!` with C-Strings
> samples: rust: i2c: replace `kernel::c_str!` with C-Strings
>
> rust/kernel/i2c.rs | 8 ++++----
> samples/rust/rust_driver_i2c.rs | 7 +++----
> samples/rust/rust_i2c_client.rs | 7 +++----
> 3 files changed, 10 insertions(+), 12 deletions(-)
> ---
> base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
> change-id: 20251222-cstr-i2c-fce258eb7e5d
>
> Best regards,
> --
> Tamir Duberstein <tamird@...il.com>
>
Reviewed-by: Daniel Almeida <daniel.almeida@...labora.com>
Powered by blists - more mailing lists