[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DB3AGL1QO4M4.2HANWHX9TF9WN@kernel.org>
Date: Fri, 04 Jul 2025 15:01:23 +0200
From: "Benno Lossin" <lossin@...nel.org>
To: "Tamir Duberstein" <tamird@...il.com>, "Michal Rostecki"
<vadorovsky@...tonmail.com>, "Miguel Ojeda" <ojeda@...nel.org>, "Alex
Gaynor" <alex.gaynor@...il.com>, "Boqun Feng" <boqun.feng@...il.com>, "Gary
Guo" <gary@...yguo.net>, Björn Roy Baron
<bjorn3_gh@...tonmail.com>, "Andreas Hindborg" <a.hindborg@...nel.org>,
"Alice Ryhl" <aliceryhl@...gle.com>, "Trevor Gross" <tmgross@...ch.edu>,
"Brendan Higgins" <brendan.higgins@...ux.dev>, "David Gow"
<davidgow@...gle.com>, "Rae Moar" <rmoar@...gle.com>, "Danilo Krummrich"
<dakr@...nel.org>, "Maarten Lankhorst" <maarten.lankhorst@...ux.intel.com>,
"Maxime Ripard" <mripard@...nel.org>, "Thomas Zimmermann"
<tzimmermann@...e.de>, "David Airlie" <airlied@...il.com>, "Simona Vetter"
<simona@...ll.ch>, "Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>, "Luis Chamberlain"
<mcgrof@...nel.org>, "Russ Weight" <russ.weight@...ux.dev>, "FUJITA
Tomonori" <fujita.tomonori@...il.com>, "Rob Herring" <robh@...nel.org>,
"Saravana Kannan" <saravanak@...gle.com>, "Peter Zijlstra"
<peterz@...radead.org>, "Ingo Molnar" <mingo@...hat.com>, "Will Deacon"
<will@...nel.org>, "Waiman Long" <longman@...hat.com>, "Nathan Chancellor"
<nathan@...nel.org>, "Nick Desaulniers" <nick.desaulniers+lkml@...il.com>,
"Bill Wendling" <morbo@...gle.com>, "Justin Stitt"
<justinstitt@...gle.com>, "Andrew Lunn" <andrew@...n.ch>, "Heiner Kallweit"
<hkallweit1@...il.com>, "Russell King" <linux@...linux.org.uk>, "David S.
Miller" <davem@...emloft.net>, "Eric Dumazet" <edumazet@...gle.com>, "Jakub
Kicinski" <kuba@...nel.org>, "Paolo Abeni" <pabeni@...hat.com>, "Bjorn
Helgaas" <bhelgaas@...gle.com>, "Arnd Bergmann" <arnd@...db.de>, "Jens
Axboe" <axboe@...nel.dk>, Krzysztof Wilczyński
<kwilczynski@...nel.org>, "Dave Ertman" <david.m.ertman@...el.com>, "Ira
Weiny" <ira.weiny@...el.com>, "Leon Romanovsky" <leon@...nel.org>, "Breno
Leitao" <leitao@...ian.org>, "Viresh Kumar" <viresh.kumar@...aro.org>,
"Michael Turquette" <mturquette@...libre.com>, "Stephen Boyd"
<sboyd@...nel.org>
Cc: <rust-for-linux@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-kselftest@...r.kernel.org>, <kunit-dev@...glegroups.com>,
<dri-devel@...ts.freedesktop.org>, <netdev@...r.kernel.org>,
<devicetree@...r.kernel.org>, <llvm@...ts.linux.dev>,
<linux-pci@...r.kernel.org>, <nouveau@...ts.freedesktop.org>,
<linux-block@...r.kernel.org>, <linux-pm@...r.kernel.org>,
<linux-clk@...r.kernel.org>
Subject: Re: [PATCH v13 4/5] rust: replace `kernel::c_str!` with C-Strings
On Tue Jul 1, 2025 at 6:49 PM CEST, Tamir Duberstein wrote:
> C-String literals were added in Rust 1.77. Replace instances of
> `kernel::c_str!` with C-String literals where possible and rename
> `kernel::c_str!` to `str_to_cstr!` to clarify its intended use.
These two things can also be split? And it should also be possible to do
this by-subsystem, right?
---
Cheers,
Benno
> Closes: https://github.com/Rust-for-Linux/linux/issues/1075
> Acked-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Reviewed-by: Alice Ryhl <aliceryhl@...gle.com>
> Signed-off-by: Tamir Duberstein <tamird@...il.com>
> ---
> drivers/block/rnull.rs | 2 +-
> drivers/cpufreq/rcpufreq_dt.rs | 5 ++---
> drivers/gpu/drm/nova/driver.rs | 10 +++++-----
> drivers/gpu/nova-core/driver.rs | 6 +++---
> drivers/net/phy/ax88796b_rust.rs | 7 +++----
> drivers/net/phy/qt2025.rs | 5 ++---
> rust/kernel/clk.rs | 6 ++----
> rust/kernel/configfs.rs | 9 +++++----
> rust/kernel/cpufreq.rs | 3 +--
> rust/kernel/devres.rs | 2 +-
> rust/kernel/drm/ioctl.rs | 2 +-
> rust/kernel/firmware.rs | 6 +++---
> rust/kernel/kunit.rs | 14 ++++++--------
> rust/kernel/net/phy.rs | 6 ++----
> rust/kernel/platform.rs | 4 ++--
> rust/kernel/str.rs | 24 ++++++++++++++++--------
> rust/kernel/sync.rs | 7 +++----
> rust/kernel/sync/completion.rs | 2 +-
> rust/kernel/sync/lock/global.rs | 3 ++-
> rust/kernel/workqueue.rs | 8 ++++----
> rust/macros/kunit.rs | 10 +++++-----
> rust/macros/module.rs | 2 +-
> samples/rust/rust_configfs.rs | 5 ++---
> samples/rust/rust_driver_auxiliary.rs | 4 ++--
> samples/rust/rust_driver_faux.rs | 4 ++--
> samples/rust/rust_driver_pci.rs | 4 ++--
> samples/rust/rust_driver_platform.rs | 4 ++--
> samples/rust/rust_misc_device.rs | 3 +--
> scripts/rustdoc_test_gen.rs | 4 ++--
> 29 files changed, 84 insertions(+), 87 deletions(-)
Powered by blists - more mailing lists