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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/kernel/device.rs
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
rust/kernel/kunit.rs| 11 ---
rust/macros
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
drivers/net/phy/ax88796b_rust.rs | 7 +++
drivers/net
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
samples/rust
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
---
rust/kernel/regulator.rs | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/rust/kernel/regulator.rs b/rust
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
rust/kernel/seq_file.rs | 4 ++--
1 file changed, 2
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/kernel/platform.rs
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
samples/rust
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
samples/rust/rust_misc_device.rs | 3 +--
1 file changed
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Viresh Kumar
Signed-off-by: Tamir Duberstein
---
drivers/cpufreq/rcpufreq_dt.rs
Tamir Duberstein
---
Changes in v2:
- Rebase.
- Add two patches to address new code.
- Drop incorrectly applied Acked-by tags from Danilo.
- Link to v1:
https://lore.kernel.org/r/20250710-core-cstr-cstrings-v1-0-027420ea7...@gmail.com
---
Tamir Duberstein (19):
drivers: net: replace `kernel::c_str!`
On Thu, Aug 14, 2025 at 4:54 PM Benno Lossin wrote:
>
> On Wed Aug 13, 2025 at 5:39 PM CEST, Tamir Duberstein wrote:
> > Reduce coupling to implementation details of the formatting machinery by
> > avoiding direct use for `core`'s formatting traits and macros.
>
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
samples/rust/rust_misc_device.rs | 3 +--
1 file changed
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
rust/kernel/net/phy.rs | 6 ++
1 file changed, 2
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
rust/kernel/seq_file.rs | 4 ++--
1 file changed, 2
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
rust/kernel/kunit.rs| 11 ---
rust/macros
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
drivers/cpufreq/rcpufreq_dt.rs | 5 ++---
rust/kernel
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/kernel/platform.rs
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
samples/rust
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
rust/macros/module.rs | 2 +-
1 file changed, 1 insertion
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
samples/rust
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
drivers/net/phy/ax88796b_rust.rs | 7 +++
drivers/net
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/kernel/firmware.rs | 6
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/kernel/device.rs
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
Acked-by: Andreas Hindborg
---
rust/kernel/configfs.rs
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
Acked-by: Stephen Boyd
---
rust/kernel/clk.rs | 6 ++
1
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
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
drivers/gpu/drm/nova
e-aux-v1-1-e1a404ae9...@gmail.com/
[4]
Signed-off-by: Tamir Duberstein
---
Changes in v2:
- Rebase.
- Add two patches to address new code.
- Drop incorrectly applied Acked-by tags from Danilo.
- Link to v1:
https://lore.kernel.org/r/20250710-core-cstr-cstrings-v1-0-027420ea7...@gmail.com
---
Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoid methods that only exist on the latter.
Link: https://github.com/Rust-for-Linux/linux/issues/1075
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoid methods that only exist on the latter.
Link: https://github.com/Rust-for-Linux/linux/issues/1075
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoid methods that only exist on the latter.
Link: https://github.com/Rust-for-Linux/linux/issues/1075
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoid methods that only exist on the latter.
Signed-off-by: Tamir Duberstein
---
rust/kernel/acpi.rs | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/rust/kernel/acpi.rs b/rust/kernel/acpi.rs
ed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
Acked-by: Andreas Hindborg
---
rust/kernel/configfs.rs | 4 ++--
samples/rust/rust_configfs.rs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/rust/kernel/configfs.rs b/rust/kernel/config
: I would appreciate your `Acked-by`s so that this
can be taken through Miguel's tree (where the other series must go).
[0]
https://lore.kernel.org/all/20250704-core-cstr-prepare-v1-0-a91524037...@gmail.com/
Signed-off-by: Tamir Duberstein
---
Changes in v3:
- Add a patch to deal with new
Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoid methods that only exist on the latter.
Link: https://github.com/Rust-for-Linux/linux/issues/1075
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
-by: Tamir Duberstein
---
rust/kernel/drm/device.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/kernel/drm/device.rs b/rust/kernel/drm/device.rs
index 3bb7c83966cf..4a51909ccc76 100644
--- a/rust/kernel/drm/device.rs
+++ b/rust/kernel/drm/device.rs
@@ -83,8 +83,8
-by: Tamir Duberstein
---
rust/kernel/firmware.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/firmware.rs b/rust/kernel/firmware.rs
index 1abab5b2f052..94e6bb88b903 100644
--- a/rust/kernel/firmware.rs
+++ b/rust/kernel/firmware.rs
@@ -291,7 +291,7 @@ const fn
Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoid methods that only exist on the latter.
Link: https://github.com/Rust-for-Linux/linux/issues/1075
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
Acked
-by: Tamir Duberstein
---
rust/kernel/auxiliary.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/kernel/auxiliary.rs b/rust/kernel/auxiliary.rs
index 4749fb6bffef..58be09871397 100644
--- a/rust/kernel/auxiliary.rs
+++ b/rust/kernel/auxiliary.rs
@@ -105,8 +105,8
-by: Tamir Duberstein
---
drivers/gpu/drm/drm_panic_qr.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_panic_qr.rs b/drivers/gpu/drm/drm_panic_qr.rs
index 09a9b452e8b7..10bc5bb16992 100644
--- a/drivers/gpu/drm/drm_panic_qr.rs
+++ b/drivers/gpu/drm
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/k
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
rust/kernel/seq_file.rs | 6 +++-
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Signed-off-by: Tamir Duberstein
---
rust/kernel/device/property.rs | 23 ---
1 file changed, 12 insertions(+), 11 deletions(-)
diff
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
rust/kernel/sync/arc.rs | 2 +-
1
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
rust/kernel/kunit.rs
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
---
rust/kernel/fs/file.rs | 5 +++--
1
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/k
Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Signed-off-by: Tamir Duberstein
Acked-by: Andreas Hindborg
---
drivers/block/rnull.rs | 2 +-
rust/kernel/block/mq.rs| 2 +-
rust/kernel/block/mq/gen_disk.rs | 2 +-
rust/kernel/block/mq/raw_writer.r
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
driver
: I would appreciate your `Acked-by`s so that this
can be taken through Miguel's tree (where the other series must go).
[0]
https://lore.kernel.org/all/20250704-core-cstr-prepare-v1-0-a91524037...@gmail.com/
Signed-off-by: Tamir Duberstein
---
Changes in v3:
- Add a patch to address new co
On Mon, Jul 21, 2025 at 4:25 PM Miguel Ojeda
wrote:
>
> On Sun, Jul 20, 2025 at 12:42 AM Tamir Duberstein wrote:
> >
> > Subsystem maintainers: I would appreciate your `Acked-by`s so that this
> > can be taken through Miguel's tree (where the other series must go).
On Mon, Jul 21, 2025 at 4:20 PM Miguel Ojeda
wrote:
>
> On Sun, Jul 20, 2025 at 12:42 AM Tamir Duberstein wrote:
> >
> > Subsystem maintainers: I would appreciate your `Acked-by`s so that this
> > can be taken through Miguel's tree (where the other series must go)
On Sun, Jul 20, 2025 at 7:17 PM Miguel Ojeda
wrote:
>
> On Mon, Jul 21, 2025 at 1:04 AM Tamir Duberstein wrote:
> >
> > Just noticed a tiny typo here: it should say "can *be* taken".
> >
> > Miguel, if you can fix that on apply, please do - but if not, n
On Fri, Jul 4, 2025 at 4:16 PM Tamir Duberstein wrote:
>
> Rather than export a macro that delegates to `core::format_args`, simply
> re-export `core::format_args` as `fmt` from the prelude. This exposes
> clippy warnings which were previously obscured by this macro, such as:
>
-by: Tamir Duberstein
---
rust/kernel/of.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/of.rs b/rust/kernel/of.rs
index 40d1bd13682c..5cf50979c1e8 100644
--- a/rust/kernel/of.rs
+++ b/rust/kernel/of.rs
@@ -29,7 +29,7 @@ fn index(&self) -> usize {
impl D
-by: Tamir Duberstein
---
rust/kernel/net/phy.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/net/phy.rs b/rust/kernel/net/phy.rs
index 65ac4d59ad77..c420e5ecab4b 100644
--- a/rust/kernel/net/phy.rs
+++ b/rust/kernel/net/phy.rs
@@ -505,7 +505,7 @@ unsafe impl Sync
-by: Tamir Duberstein
---
rust/kernel/auxiliary.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/kernel/auxiliary.rs b/rust/kernel/auxiliary.rs
index d2cfe1eeefb6..89d961407adb 100644
--- a/rust/kernel/auxiliary.rs
+++ b/rust/kernel/auxiliary.rs
@@ -111,8 +111,8
-by: Tamir Duberstein
---
rust/kernel/firmware.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/firmware.rs b/rust/kernel/firmware.rs
index be684e860ed2..ca00aa2b4d85 100644
--- a/rust/kernel/firmware.rs
+++ b/rust/kernel/firmware.rs
@@ -291,7 +291,7 @@ const fn
-by: Tamir Duberstein
---
rust/kernel/miscdevice.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/miscdevice.rs b/rust/kernel/miscdevice.rs
index ad51ffc549b8..585cfbcb8a2f 100644
--- a/rust/kernel/miscdevice.rs
+++ b/rust/kernel/miscdevice.rs
@@ -35,7 +35,7 @@ pub
-by: Tamir Duberstein
---
rust/kernel/kunit.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/rust/kernel/kunit.rs b/rust/kernel/kunit.rs
index 099a61bbb8f4..3fd33c0c5ecc 100644
--- a/rust/kernel/kunit.rs
+++ b/rust/kernel/kunit.rs
@@ -102,12 +102,12 @@ unsafe impl Sync
ed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/kernel/configfs.rs | 4 ++--
samples/rust/rust_configfs.rs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/rust/kernel/configfs.rs b/rust/kernel/config
-by: Tamir Duberstein
---
rust/kernel/cpufreq.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/cpufreq.rs b/rust/kernel/cpufreq.rs
index e8d231971276..71d601f7c261 100644
--- a/rust/kernel/cpufreq.rs
+++ b/rust/kernel/cpufreq.rs
@@ -1018,7 +1018,7 @@ impl
-by: Tamir Duberstein
---
rust/kernel/drm/device.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/kernel/drm/device.rs b/rust/kernel/drm/device.rs
index e598c4274f29..439cb1b747e1 100644
--- a/rust/kernel/drm/device.rs
+++ b/rust/kernel/drm/device.rs
@@ -83,8 +83,8
-by: Tamir Duberstein
---
drivers/gpu/drm/drm_panic_qr.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_panic_qr.rs b/drivers/gpu/drm/drm_panic_qr.rs
index 6b59d19ab631..fea062cc0383 100644
--- a/drivers/gpu/drm/drm_panic_qr.rs
+++ b/drivers/gpu/drm
: I would appreciate your `Acked-by`s so that this
can be taken through Miguel's tree (where the other series must go).
[0]
https://lore.kernel.org/all/20250704-core-cstr-prepare-v1-0-a91524037...@gmail.com/
Signed-off-by: Tamir Duberstein
---
Changes in v2:
- Update patch title (was nova
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/k
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/k
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/k
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/k
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/k
Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
drivers/block/rnull.rs | 2 +-
rust/kernel/block/mq.rs| 2 +-
rust/kernel/block/mq/gen_disk.rs | 2 +-
rust/kernel/block/mq/raw_writer.r
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
rust/k
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Reviewed-by: Benno Lossin
Acked-by: Danilo Krummrich
Signed-off-by: Tamir Duberstein
---
driver
: I would appreciate your `Acked-by`s so that this
can be taken through Miguel's tree (where the other series must go).
[0]
https://lore.kernel.org/all/20250704-core-cstr-prepare-v1-0-a91524037...@gmail.com/
Signed-off-by: Tamir Duberstein
---
Changes in v2:
- Rebase on rust-next.
- Dro
On Wed, Jul 9, 2025 at 4:00 PM Tamir Duberstein wrote:
>
> Reduce coupling to implementation details of the formatting machinery by
> avoiding direct use for `core`'s formatting traits and macros.
>
> Acked-by: Greg Kroah-Hartman
> Reviewed-by: Alice Ryhl
> Signe
On Mon, Jul 14, 2025 at 11:18 AM Miguel Ojeda
wrote:
>
> On Mon, Jul 14, 2025 at 2:35 PM Tamir Duberstein wrote:
> >
> > How should I respin this one? the subject should be drm/panic, I think.
>
> I would mimic what the previous commits did, i.e. drm/panic indeed.
>
&
On Mon, Jul 14, 2025 at 7:11 AM Danilo Krummrich wrote:
>
> On Wed Jul 9, 2025 at 9:58 PM CEST, Tamir Duberstein wrote:
> > Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
> > avoid methods that only exist on the latter.
> >
> > Link: htt
On Mon, Jul 14, 2025 at 7:09 AM Danilo Krummrich wrote:
>
> On Wed Jul 9, 2025 at 9:58 PM CEST, Tamir Duberstein wrote:
> > Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
> > avoid methods that only exist on the latter.
> >
> > Link: htt
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
rust/kernel/configfs.rs | 5 ++---
samples/rust/rust_configfs.rs | 5 ++---
2
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
rust/kernel/seq_file.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
drivers/block/rnull.rs | 2 +-
rust/kernel/sync.rs| 5
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
rust/kernel/platform.rs | 4 ++--
samples/rust/rust_driver_faux.rs
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
rust/kernel/str.rs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
rust/kernel/net/phy.rs | 6 ++
1 file changed, 2 insertions(+), 4 deletions
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
samples/rust/rust_misc_device.rs | 3 +--
1 file changed, 1 insertion(+), 2
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
rust/kernel/kunit.rs| 11 ---
rust/macros/kunit.rs| 10
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
samples/rust/rust_driver_pci.rs | 4 ++--
1 file changed, 2 insertions(+), 2
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
rust/kernel/device.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
rust/kernel/firmware.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
rust/macros/module.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
rust/kernel/clk.rs | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
drivers/cpufreq/rcpufreq_dt.rs | 5 ++---
rust/kernel/cpufreq.rs | 3 +--
2
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
samples/rust/rust_driver_auxiliary.rs | 4 ++--
1 file changed, 2 insertions(+), 2
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
drivers/gpu/drm/nova/driver.rs | 10 +-
drivers/gpu/nova-core/driver.rs
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
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
drivers/net/phy/ax88796b_rust.rs | 7 +++
drivers/net/phy/qt2025.rs| 5
e-aux-v1-1-e1a404ae9...@gmail.com/
[4]
Signed-off-by: Tamir Duberstein
---
Tamir Duberstein (17):
drivers: net: replace `kernel::c_str!` with C-Strings
gpu: nova-core: replace `kernel::c_str!` with C-Strings
rust: auxiliary: replace `kernel::c_str!` with C-Strings
rust
On Wed, Jul 9, 2025 at 6:36 PM Tamir Duberstein wrote:
>
>
> Ack, sent
> https://lore.kernel.org/all/20250709-init-remove-old-workaround-v1-1-a922d3233...@gmail.com/.
Messed it up, sent v2:
https://lore.kernel.org/all/20250709-init-remove-old-workaround-v2-0-a3b1be8fd...@gmail.com/.
On Wed, Jul 9, 2025 at 5:58 PM Benno Lossin wrote:
>
> On Wed Jul 9, 2025 at 11:01 PM CEST, Tamir Duberstein wrote:
> > On Wed, Jul 9, 2025 at 4:18 PM Benno Lossin wrote:
> >>
> >> On Wed Jul 9, 2025 at 10:00 PM CEST, Tamir Duberstein wrote:
> >> > Re
On Wed, Jul 9, 2025 at 4:18 PM Benno Lossin wrote:
>
> On Wed Jul 9, 2025 at 10:00 PM CEST, Tamir Duberstein wrote:
> > Reduce coupling to implementation details of the formatting machinery by
> > avoiding direct use for `core`'s formatting traits and macros.
> >
>
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman
Reviewed-by: Alice Ryhl
Signed-off-by: Tamir Duberstein
---
rust/kernel/fs/file.rs | 5 +++--
1 file changed, 3 insertions(
1 - 100 of 277 matches
Mail list logo