[PATCH v2 07/19] rust: device: replace `kernel::c_str!` with C-Strings

2025-09-25 Thread Tamir Duberstein
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

[PATCH v2 09/19] rust: kunit: replace `kernel::c_str!` with C-Strings

2025-09-25 Thread Tamir Duberstein
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

[PATCH v2 01/19] drivers: net: replace `kernel::c_str!` with C-Strings

2025-09-25 Thread Tamir Duberstein
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

[PATCH v2 03/19] rust: auxiliary: replace `kernel::c_str!` with C-Strings

2025-09-25 Thread Tamir Duberstein
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

[PATCH v2 19/19] rust: regulator: replace `kernel::c_str!` with C-Strings

2025-09-25 Thread Tamir Duberstein
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

[PATCH v2 15/19] rust: seq_file: replace `kernel::c_str!` with C-Strings

2025-09-25 Thread Tamir Duberstein
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

[PATCH v2 14/19] rust: platform: replace `kernel::c_str!` with C-Strings

2025-09-25 Thread Tamir Duberstein
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

[PATCH v2 13/19] rust: pci: replace `kernel::c_str!` with C-Strings

2025-09-25 Thread Tamir Duberstein
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

[PATCH v2 11/19] rust: miscdevice: replace `kernel::c_str!` with C-Strings

2025-09-25 Thread Tamir Duberstein
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

[PATCH v2 06/19] rust: cpufreq: replace `kernel::c_str!` with C-Strings

2025-09-25 Thread Tamir Duberstein
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

[PATCH v2 00/19] rust: replace `kernel::c_str!` with C-Strings

2025-09-25 Thread Tamir Duberstein
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!`

Re: [PATCH v3 9/9] rust: device: use `kernel::{fmt,prelude::fmt!}`

2025-09-23 Thread Tamir Duberstein
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. >

[PATCH v2 11/19] rust: miscdevice: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 12/19] rust: net: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 15/19] rust: seq_file: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 09/19] rust: kunit: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 06/19] rust: cpufreq: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 14/19] rust: platform: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 13/19] rust: pci: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 10/19] rust: macros: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 03/19] rust: auxiliary: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 01/19] drivers: net: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 08/19] rust: firmware: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 07/19] rust: device: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 05/19] rust: configfs: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 04/19] rust: clk: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 02/19] gpu: nova-core: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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

[PATCH v2 00/19] rust: replace `kernel::c_str!` with C-Strings

2025-08-13 Thread Tamir Duberstein
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 ---

[PATCH v3 10/11] rust: of: use `core::ffi::CStr` method names

2025-08-13 Thread 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

[PATCH v3 09/11] rust: net: use `core::ffi::CStr` method names

2025-08-13 Thread 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

[PATCH v3 08/11] rust: miscdevice: use `core::ffi::CStr` method names

2025-08-13 Thread 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

[PATCH v3 11/11] rust: acpi: use `core::ffi::CStr` method names

2025-08-13 Thread 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

[PATCH v3 03/11] rust: configfs: use `core::ffi::CStr` method names

2025-08-13 Thread Tamir Duberstein
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

[PATCH v3 00/11] rust: use `core::ffi::CStr` method names

2025-08-13 Thread Tamir Duberstein
: 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

[PATCH v3 07/11] rust: kunit: use `core::ffi::CStr` method names

2025-08-13 Thread 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

[PATCH v3 05/11] rust: drm: use `core::ffi::CStr` method names

2025-08-13 Thread 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

[PATCH v3 06/11] rust: firmware: use `core::ffi::CStr` method names

2025-08-13 Thread Tamir Duberstein
-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

[PATCH v3 04/11] rust: cpufreq: use `core::ffi::CStr` method names

2025-08-13 Thread 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 Acked

[PATCH v3 02/11] rust: auxiliary: use `core::ffi::CStr` method names

2025-08-13 Thread Tamir Duberstein
-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

[PATCH v3 01/11] drm/panic: use `core::ffi::CStr` method names

2025-08-13 Thread Tamir Duberstein
-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

[PATCH v3 2/9] rust: alloc: use `kernel::{fmt,prelude::fmt!}`

2025-08-13 Thread Tamir Duberstein
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

[PATCH v3 7/9] rust: seq_file: use `kernel::{fmt,prelude::fmt!}`

2025-08-13 Thread Tamir Duberstein
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 +++-

[PATCH v3 9/9] rust: device: use `kernel::{fmt,prelude::fmt!}`

2025-08-13 Thread Tamir Duberstein
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

[PATCH v3 8/9] rust: sync: use `kernel::{fmt,prelude::fmt!}`

2025-08-13 Thread Tamir Duberstein
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

[PATCH v3 6/9] rust: kunit: use `kernel::{fmt,prelude::fmt!}`

2025-08-13 Thread Tamir Duberstein
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

[PATCH v3 5/9] rust: file: use `kernel::{fmt,prelude::fmt!}`

2025-08-13 Thread Tamir Duberstein
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

[PATCH v3 4/9] rust: device: use `kernel::{fmt,prelude::fmt!}`

2025-08-13 Thread Tamir Duberstein
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

[PATCH v3 3/9] rust: block: use `kernel::{fmt,prelude::fmt!}`

2025-08-13 Thread Tamir Duberstein
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

[PATCH v3 1/9] gpu: nova-core: use `kernel::{fmt,prelude::fmt!}`

2025-08-13 Thread Tamir Duberstein
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

[PATCH v3 0/9] rust: use `kernel::{fmt,prelude::fmt!}`

2025-08-13 Thread Tamir Duberstein
: 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

Re: [PATCH v2 0/8] rust: use `kernel::{fmt,prelude::fmt!}`

2025-07-21 Thread Tamir Duberstein
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).

Re: [PATCH v2 00/10] rust: use `core::ffi::CStr` method names

2025-07-21 Thread Tamir Duberstein
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)

Re: [PATCH 1/6] rust: kernel: remove `fmt!`, fix clippy::uninlined-format-args

2025-07-20 Thread Tamir Duberstein
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

Re: [PATCH 1/6] rust: kernel: remove `fmt!`, fix clippy::uninlined-format-args

2025-07-20 Thread Tamir Duberstein
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: >

[PATCH v2 10/10] rust: of: use `core::ffi::CStr` method names

2025-07-19 Thread Tamir Duberstein
-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

[PATCH v2 09/10] rust: net: use `core::ffi::CStr` method names

2025-07-19 Thread Tamir Duberstein
-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

[PATCH v2 02/10] rust: auxiliary: use `core::ffi::CStr` method names

2025-07-19 Thread Tamir Duberstein
-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

[PATCH v2 06/10] rust: firmware: use `core::ffi::CStr` method names

2025-07-19 Thread Tamir Duberstein
-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

[PATCH v2 08/10] rust: miscdevice: use `core::ffi::CStr` method names

2025-07-19 Thread Tamir Duberstein
-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

[PATCH v2 07/10] rust: kunit: use `core::ffi::CStr` method names

2025-07-19 Thread Tamir Duberstein
-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

[PATCH v2 03/10] rust: configfs: use `core::ffi::CStr` method names

2025-07-19 Thread Tamir Duberstein
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

[PATCH v2 04/10] rust: cpufreq: use `core::ffi::CStr` method names

2025-07-19 Thread Tamir Duberstein
-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

[PATCH v2 05/10] rust: drm: use `core::ffi::CStr` method names

2025-07-19 Thread 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 e598c4274f29..439cb1b747e1 100644 --- a/rust/kernel/drm/device.rs +++ b/rust/kernel/drm/device.rs @@ -83,8 +83,8

[PATCH v2 01/10] drm/panic: use `core::ffi::CStr` method names

2025-07-19 Thread Tamir Duberstein
-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

[PATCH v2 00/10] rust: use `core::ffi::CStr` method names

2025-07-19 Thread Tamir Duberstein
: 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

[PATCH v2 8/8] rust: sync: use `kernel::{fmt,prelude::fmt!}`

2025-07-19 Thread Tamir Duberstein
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

[PATCH v2 6/8] rust: kunit: use `kernel::{fmt,prelude::fmt!}`

2025-07-19 Thread Tamir Duberstein
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

[PATCH v2 5/8] rust: file: use `kernel::{fmt,prelude::fmt!}`

2025-07-19 Thread Tamir Duberstein
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

[PATCH v2 4/8] rust: device: use `kernel::{fmt,prelude::fmt!}`

2025-07-19 Thread Tamir Duberstein
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

[PATCH v2 7/8] rust: seq_file: use `kernel::{fmt,prelude::fmt!}`

2025-07-19 Thread Tamir Duberstein
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

[PATCH v2 3/8] rust: block: use `kernel::{fmt,prelude::fmt!}`

2025-07-19 Thread Tamir Duberstein
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

[PATCH v2 2/8] rust: alloc: use `kernel::{fmt,prelude::fmt!}`

2025-07-19 Thread Tamir Duberstein
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

[PATCH v2 1/8] gpu: nova-core: use `kernel::{fmt,prelude::fmt!}`

2025-07-19 Thread Tamir Duberstein
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

[PATCH v2 0/8] rust: use `kernel::{fmt,prelude::fmt!}`

2025-07-19 Thread Tamir Duberstein
: 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

Re: [PATCH 8/9] rust: seq_file: use `kernel::{fmt,prelude::fmt!}`

2025-07-14 Thread Tamir Duberstein
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

Re: [PATCH 01/10] gpu: nova-core: use `core::ffi::CStr` method names

2025-07-14 Thread Tamir Duberstein
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. > &

Re: [PATCH 01/10] gpu: nova-core: use `core::ffi::CStr` method names

2025-07-14 Thread Tamir Duberstein
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

Re: [PATCH 05/10] rust: drm: use `core::ffi::CStr` method names

2025-07-14 Thread Tamir Duberstein
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

[PATCH 05/17] rust: configfs: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 15/17] rust: seq_file: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 17/17] rust: sync: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 14/17] rust: platform: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 16/17] rust: str: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 12/17] rust: net: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 11/17] rust: miscdevice: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 09/17] rust: kunit: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 13/17] rust: pci: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 07/17] rust: device: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 08/17] rust: firmware: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 10/17] rust: macros: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 04/17] rust: clk: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 06/17] rust: cpufreq: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 03/17] rust: auxiliary: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 02/17] gpu: nova-core: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 01/17] drivers: net: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

[PATCH 00/17] rust: replace `kernel::c_str!` with C-Strings

2025-07-10 Thread Tamir Duberstein
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

Re: [PATCH 7/9] rust: pin-init: use `kernel::{fmt,prelude::fmt!}`

2025-07-09 Thread Tamir Duberstein
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/.

Re: [PATCH 7/9] rust: pin-init: use `kernel::{fmt,prelude::fmt!}`

2025-07-09 Thread Tamir Duberstein
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

Re: [PATCH 7/9] rust: pin-init: use `kernel::{fmt,prelude::fmt!}`

2025-07-09 Thread Tamir Duberstein
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. > > >

[PATCH 5/9] rust: file: use `kernel::{fmt,prelude::fmt!}`

2025-07-09 Thread Tamir Duberstein
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   2   3   >