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

1 view
Skip to first unread message

Tamir Duberstein

unread,
Jul 9, 2025, 3:58:57 PM7/9/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, Tamir Duberstein
This is series 2b/5 of the migration to `core::ffi::CStr`[0].
20250704-core-cstr-pre...@gmail.com.

This series depends on the prior series[0] and is intended to go through
the rust tree to reduce the number of release cycles required to
complete the work.

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).

[0] https://lore.kernel.org/all/20250704-core-cstr-pre...@gmail.com/

Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
Tamir Duberstein (10):
gpu: nova-core: use `core::ffi::CStr` method names
rust: auxiliary: use `core::ffi::CStr` method names
rust: configfs: use `core::ffi::CStr` method names
rust: cpufreq: use `core::ffi::CStr` method names
rust: drm: use `core::ffi::CStr` method names
rust: firmware: use `core::ffi::CStr` method names
rust: kunit: use `core::ffi::CStr` method names
rust: miscdevice: use `core::ffi::CStr` method names
rust: net: use `core::ffi::CStr` method names
rust: of: use `core::ffi::CStr` method names

drivers/gpu/drm/drm_panic_qr.rs | 2 +-
rust/kernel/auxiliary.rs | 4 ++--
rust/kernel/configfs.rs | 4 ++--
rust/kernel/cpufreq.rs | 2 +-
rust/kernel/drm/device.rs | 4 ++--
rust/kernel/firmware.rs | 2 +-
rust/kernel/kunit.rs | 6 +++---
rust/kernel/miscdevice.rs | 2 +-
rust/kernel/net/phy.rs | 2 +-
rust/kernel/of.rs | 2 +-
samples/rust/rust_configfs.rs | 2 +-
11 files changed, 16 insertions(+), 16 deletions(-)
---
base-commit: 769e324b66b0d92d04f315d0c45a0f72737c7494
change-id: 20250709-core-cstr-fanout-1-f20611832272
prerequisite-change-id: 20250704-core-cstr-prepare-9b9e6a7bd57e:v1
prerequisite-patch-id: 83b1239d1805f206711a5a936bbb61c83227d573
prerequisite-patch-id: a0355dd0efcc945b0565dc4e5a0f42b5a3d29c7e
prerequisite-patch-id: 8585bf441cfab705181f5606c63483c2e88d25aa
prerequisite-patch-id: 04ec344c0bc23f90dbeac10afe26df1a86ce53ec
prerequisite-patch-id: a2fc6cd05fce6d6da8d401e9f8a905bb5c0b2f27
prerequisite-patch-id: f14c099c87562069f25fb7aea6d9aae4086c49a8

Best regards,
--
Tamir Duberstein <tam...@gmail.com>

Tamir Duberstein

unread,
Jul 9, 2025, 3:58:59 PM7/9/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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/drm_panic_qr.rs
@@ -948,7 +948,7 @@ fn draw_all(&mut self, data: impl Iterator<Item = u8>) {
// nul-terminated string.
let url_cstr: &CStr = unsafe { CStr::from_char_ptr(url) };
let segments = &[
- &Segment::Binary(url_cstr.as_bytes()),
+ &Segment::Binary(url_cstr.to_bytes()),
&Segment::Numeric(&data_slice[0..data_len]),
];
match EncodedMsg::new(segments, tmp_slice) {

--
2.50.0

Tamir Duberstein

unread,
Jul 9, 2025, 3:59:02 PM7/9/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 @@ macro_rules! module_auxiliary_driver {
impl DeviceId {
/// Create a new [`DeviceId`] from name.
pub const fn new(modname: &'static CStr, name: &'static CStr) -> Self {
- let name = name.as_bytes_with_nul();
- let modname = modname.as_bytes_with_nul();
+ let name = name.to_bytes_with_nul();
+ let modname = modname.to_bytes_with_nul();

// TODO: Replace with `bindings::auxiliary_device_id::default()` once stabilized for
// `const`.

--
2.50.0

Tamir Duberstein

unread,
Jul 9, 2025, 3:59:03 PM7/9/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, Tamir Duberstein
Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoid methods that only exist on the latter.

Also avoid `Deref<Target=BStr> for CStr` as that impl doesn't exist on
`core::ffi::CStr`.

Link: https://github.com/Rust-for-Linux/linux/issues/1075
Acked-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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/configfs.rs
index aafef70b7177..d4797c41ba77 100644
--- a/rust/kernel/configfs.rs
+++ b/rust/kernel/configfs.rs
@@ -263,7 +263,7 @@ pub fn new(
try_pin_init!(Self {
group <- pin_init::zeroed().chain(|v: &mut Opaque<bindings::config_group>| {
let place = v.get();
- let name = name.as_bytes_with_nul().as_ptr();
+ let name = name.to_bytes_with_nul().as_ptr();
// SAFETY: It is safe to initialize a group once it has been zeroed.
unsafe {
bindings::config_group_init_type_name(place, name.cast(), item_type.as_ptr())
@@ -613,7 +613,7 @@ impl<const ID: u64, O, Data> Attribute<ID, O, Data>
pub const fn new(name: &'static CStr) -> Self {
Self {
attribute: Opaque::new(bindings::configfs_attribute {
- ca_name: name.as_char_ptr(),
+ ca_name: crate::str::as_char_ptr_in_const_context(name),
ca_owner: core::ptr::null_mut(),
ca_mode: 0o660,
show: Some(Self::show),
diff --git a/samples/rust/rust_configfs.rs b/samples/rust/rust_configfs.rs
index af04bfa35cb2..5005453f874d 100644
--- a/samples/rust/rust_configfs.rs
+++ b/samples/rust/rust_configfs.rs
@@ -94,7 +94,7 @@ impl configfs::AttributeOperations<0> for Configuration {

fn show(container: &Configuration, page: &mut [u8; PAGE_SIZE]) -> Result<usize> {
pr_info!("Show message\n");
- let data = container.message;
+ let data = container.message.to_bytes();
page[0..data.len()].copy_from_slice(data);
Ok(data.len())
}

--
2.50.0

Tamir Duberstein

unread,
Jul 9, 2025, 3:59:04 PM7/9/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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<T: Driver> Registration<T> {
};

const fn copy_name(name: &'static CStr) -> [c_char; CPUFREQ_NAME_LEN] {
- let src = name.as_bytes_with_nul();
+ let src = name.to_bytes_with_nul();
let mut dst = [0; CPUFREQ_NAME_LEN];

build_assert!(src.len() <= CPUFREQ_NAME_LEN);

--
2.50.0

Tamir Duberstein

unread,
Jul 9, 2025, 3:59:06 PM7/9/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 b7ee3c464a12..998b942b6dd8 100644
--- a/rust/kernel/drm/device.rs
+++ b/rust/kernel/drm/device.rs
@@ -83,8 +83,8 @@ impl<T: drm::Driver> Device<T> {
major: T::INFO.major,
minor: T::INFO.minor,
patchlevel: T::INFO.patchlevel,
- name: T::INFO.name.as_char_ptr().cast_mut(),
- desc: T::INFO.desc.as_char_ptr().cast_mut(),
+ name: crate::str::as_char_ptr_in_const_context(T::INFO.name).cast_mut(),
+ desc: crate::str::as_char_ptr_in_const_context(T::INFO.desc).cast_mut(),

driver_features: drm::driver::FEAT_GEM,
ioctls: T::IOCTLS.as_ptr(),

--
2.50.0

Tamir Duberstein

unread,
Jul 9, 2025, 3:59:09 PM7/9/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 push_module_name(self) -> Self {
let module_name = this.module_name;

if !this.module_name.is_empty() {
- this = this.push_internal(module_name.as_bytes_with_nul());
+ this = this.push_internal(module_name.to_bytes_with_nul());

if N != 0 {
// Re-use the space taken by the NULL terminator and swap it with the '.' separator.

--
2.50.0

Tamir Duberstein

unread,
Jul 9, 2025, 3:59:10 PM7/9/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 for Location {}
unsafe impl Sync for UnaryAssert {}

static LOCATION: Location = Location($crate::bindings::kunit_loc {
- file: FILE.as_char_ptr(),
+ file: $crate::str::as_char_ptr_in_const_context(FILE),
line: LINE,
});
static ASSERTION: UnaryAssert = UnaryAssert($crate::bindings::kunit_unary_assert {
assert: $crate::bindings::kunit_assert {},
- condition: CONDITION.as_char_ptr(),
+ condition: $crate::str::as_char_ptr_in_const_context(CONDITION),
expected_true: true,
});

@@ -202,7 +202,7 @@ pub const fn kunit_case(
) -> kernel::bindings::kunit_case {
kernel::bindings::kunit_case {
run_case: Some(run_case),
- name: name.as_char_ptr(),
+ name: kernel::str::as_char_ptr_in_const_context(name),
attr: kernel::bindings::kunit_attributes {
speed: kernel::bindings::kunit_speed_KUNIT_SPEED_NORMAL,
},

--
2.50.0

Tamir Duberstein

unread,
Jul 9, 2025, 3:59:12 PM7/9/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 288f40e79906..b5b2e3cc158f 100644
--- a/rust/kernel/miscdevice.rs
+++ b/rust/kernel/miscdevice.rs
@@ -35,7 +35,7 @@ pub const fn into_raw<T: MiscDevice>(self) -> bindings::miscdevice {
// SAFETY: All zeros is valid for this C type.
let mut result: bindings::miscdevice = unsafe { MaybeUninit::zeroed().assume_init() };
result.minor = bindings::MISC_DYNAMIC_MINOR as ffi::c_int;
- result.name = self.name.as_char_ptr();
+ result.name = crate::str::as_char_ptr_in_const_context(self.name);
result.fops = MiscdeviceVTable::<T>::build();
result
}

--
2.50.0

Tamir Duberstein

unread,
Jul 9, 2025, 3:59:14 PM7/9/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 for DriverVTable {}
pub const fn create_phy_driver<T: Driver>() -> DriverVTable {
// INVARIANT: All the fields of `struct phy_driver` are initialized properly.
DriverVTable(Opaque::new(bindings::phy_driver {
- name: T::NAME.as_char_ptr().cast_mut(),
+ name: crate::str::as_char_ptr_in_const_context(T::NAME).cast_mut(),
flags: T::FLAGS,
phy_id: T::PHY_DEVICE_ID.id,
phy_id_mask: T::PHY_DEVICE_ID.mask_as_int(),

--
2.50.0

Tamir Duberstein

unread,
Jul 9, 2025, 3:59:16 PM7/9/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 DeviceId {
/// Create a new device id from an OF 'compatible' string.
pub const fn new(compatible: &'static CStr) -> Self {
- let src = compatible.as_bytes_with_nul();
+ let src = compatible.to_bytes_with_nul();
// Replace with `bindings::of_device_id::default()` once stabilized for `const`.
// SAFETY: FFI type is valid to be zero-initialized.
let mut of: bindings::of_device_id = unsafe { core::mem::zeroed() };

--
2.50.0

Benno Lossin

unread,
Jul 9, 2025, 4:21:04 PM7/9/25
to Tamir Duberstein, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org
For the entire series:

Reviewed-by: Benno Lossin <los...@kernel.org>

Thanks a lot for splitting it up into these tiny pieces!

---
Cheers,
Benno

Danilo Krummrich

unread,
Jul 14, 2025, 7:09:50 AM7/14/25
to Tamir Duberstein, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org
On Wed Jul 9, 2025 at 9:58 PM CEST, Tamir Duberstein wrote:
Maybe looks slightly cleaner to import this function, not a blocker though.

Danilo Krummrich

unread,
Jul 14, 2025, 7:11:56 AM7/14/25
to Tamir Duberstein, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org
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: https://github.com/Rust-for-Linux/linux/issues/1075
> Acked-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>
> Reviewed-by: Alice Ryhl <alic...@google.com>
> Signed-off-by: Tamir Duberstein <tam...@gmail.com>
> ---
> drivers/gpu/drm/drm_panic_qr.rs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

This doesn't look like nova-core. :)

Danilo Krummrich

unread,
Jul 14, 2025, 7:13:22 AM7/14/25
to Tamir Duberstein, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org
On Wed Jul 9, 2025 at 9:58 PM CEST, Tamir Duberstein wrote:
> This is series 2b/5 of the migration to `core::ffi::CStr`[0].
> 20250704-core-cstr-pre...@gmail.com.

For auxiliary, firmware and drm,

Acked-by: Danilo Krummrich <da...@kernel.org>

Tamir Duberstein

unread,
Jul 14, 2025, 8:28:53 AM7/14/25
to Danilo Krummrich, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org
I don't feel strongly. I think I chose not to import it because of the
potential for conflicts.

See also https://github.com/rust-lang/rfcs/pull/3490 which would
obviate the need for this method.

Tamir Duberstein

unread,
Jul 14, 2025, 8:35:37 AM7/14/25
to Danilo Krummrich, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, Javier Martinez Canillas
Oops :(

How should I respin this one? the subject should be drm/panic, I think.

Miguel Ojeda

unread,
Jul 14, 2025, 11:18:19 AM7/14/25
to Tamir Duberstein, Danilo Krummrich, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, Javier Martinez Canillas
On Mon, Jul 14, 2025 at 2:35 PM Tamir Duberstein <tam...@gmail.com> 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.

(If I happen to pick it up before a resend, I could fix it on my side)

Cheers,
Miguel

Tamir Duberstein

unread,
Jul 14, 2025, 11:28:10 AM7/14/25
to Miguel Ojeda, Danilo Krummrich, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, Javier Martinez Canillas
Yep, that's what I was going to do - but do I resend the whole series,
or somehow just this patch?

Miguel Ojeda

unread,
Jul 14, 2025, 12:17:46 PM7/14/25
to Tamir Duberstein, Danilo Krummrich, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, Javier Martinez Canillas
On Mon, Jul 14, 2025 at 5:28 PM Tamir Duberstein <tam...@gmail.com> wrote:
>
> Yep, that's what I was going to do - but do I resend the whole series,
> or somehow just this patch?

Whole series is simpler, I think.

Cheers,
Miguel

Tamir Duberstein

unread,
Jul 19, 2025, 6:42:39 PM7/19/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, Tamir Duberstein
This is series 2b/5 of the migration to `core::ffi::CStr`[0].
20250704-core-cstr-pre...@gmail.com.

This series depends on the prior series[0] and is intended to go through
the rust tree to reduce the number of release cycles required to
complete the work.

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).

[0] https://lore.kernel.org/all/20250704-core-cstr-pre...@gmail.com/

Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
Changes in v2:
- Update patch title (was nova-core, now drm/panic).
- Link to v1: https://lore.kernel.org/r/20250709-core-cstr-fan...@gmail.com

---
Tamir Duberstein (10):
drm/panic: use `core::ffi::CStr` method names
rust: auxiliary: use `core::ffi::CStr` method names
rust: configfs: use `core::ffi::CStr` method names
rust: cpufreq: use `core::ffi::CStr` method names
rust: drm: use `core::ffi::CStr` method names
rust: firmware: use `core::ffi::CStr` method names
rust: kunit: use `core::ffi::CStr` method names
rust: miscdevice: use `core::ffi::CStr` method names
rust: net: use `core::ffi::CStr` method names
rust: of: use `core::ffi::CStr` method names

drivers/gpu/drm/drm_panic_qr.rs | 2 +-
rust/kernel/auxiliary.rs | 4 ++--
rust/kernel/configfs.rs | 4 ++--
rust/kernel/cpufreq.rs | 2 +-
rust/kernel/drm/device.rs | 4 ++--
rust/kernel/firmware.rs | 2 +-
rust/kernel/kunit.rs | 6 +++---
rust/kernel/miscdevice.rs | 2 +-
rust/kernel/net/phy.rs | 2 +-
rust/kernel/of.rs | 2 +-
samples/rust/rust_configfs.rs | 2 +-
11 files changed, 16 insertions(+), 16 deletions(-)
---
base-commit: cc84ef3b88f407e8bd5a5f7b6906d1e69851c856

Tamir Duberstein

unread,
Jul 19, 2025, 6:42:42 PM7/19/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Reviewed-by: Benno Lossin <los...@kernel.org>
Acked-by: Danilo Krummrich <da...@kernel.org>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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/drm_panic_qr.rs
@@ -948,7 +948,7 @@ fn draw_all(&mut self, data: impl Iterator<Item = u8>) {
// nul-terminated string.
let url_cstr: &CStr = unsafe { CStr::from_char_ptr(url) };
let segments = &[
- &Segment::Binary(url_cstr.as_bytes()),
+ &Segment::Binary(url_cstr.to_bytes()),
&Segment::Numeric(&data_slice[0..data_len]),
];
match EncodedMsg::new(segments, tmp_slice) {

--
2.50.1

Tamir Duberstein

unread,
Jul 19, 2025, 6:42:43 PM7/19/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Reviewed-by: Benno Lossin <los...@kernel.org>
Acked-by: Danilo Krummrich <da...@kernel.org>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 @@ macro_rules! module_auxiliary_driver {
impl DeviceId {
/// Create a new [`DeviceId`] from name.
pub const fn new(modname: &'static CStr, name: &'static CStr) -> Self {
- let name = name.as_bytes_with_nul();
- let modname = modname.as_bytes_with_nul();
+ let name = name.to_bytes_with_nul();
+ let modname = modname.to_bytes_with_nul();

// TODO: Replace with `bindings::auxiliary_device_id::default()` once stabilized for
// `const`.

--
2.50.1

Tamir Duberstein

unread,
Jul 19, 2025, 6:42:44 PM7/19/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, Tamir Duberstein
Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoid methods that only exist on the latter.

Also avoid `Deref<Target=BStr> for CStr` as that impl doesn't exist on
`core::ffi::CStr`.

Link: https://github.com/Rust-for-Linux/linux/issues/1075
Acked-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Reviewed-by: Benno Lossin <los...@kernel.org>
Acked-by: Danilo Krummrich <da...@kernel.org>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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/configfs.rs
index 2736b798cdc6..9fb5ef825e41 100644
--- a/rust/kernel/configfs.rs
+++ b/rust/kernel/configfs.rs
@@ -263,7 +263,7 @@ pub fn new(
try_pin_init!(Self {
group <- pin_init::init_zeroed().chain(|v: &mut Opaque<bindings::config_group>| {
2.50.1

Tamir Duberstein

unread,
Jul 19, 2025, 6:42:47 PM7/19/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Reviewed-by: Benno Lossin <los...@kernel.org>
Acked-by: Danilo Krummrich <da...@kernel.org>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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<T: Driver> Registration<T> {
};

const fn copy_name(name: &'static CStr) -> [c_char; CPUFREQ_NAME_LEN] {
- let src = name.as_bytes_with_nul();
+ let src = name.to_bytes_with_nul();
let mut dst = [0; CPUFREQ_NAME_LEN];

build_assert!(src.len() <= CPUFREQ_NAME_LEN);

--
2.50.1

Tamir Duberstein

unread,
Jul 19, 2025, 6:42:50 PM7/19/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Reviewed-by: Benno Lossin <los...@kernel.org>
Acked-by: Danilo Krummrich <da...@kernel.org>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 @@ impl<T: drm::Driver> Device<T> {
major: T::INFO.major,
minor: T::INFO.minor,
patchlevel: T::INFO.patchlevel,
- name: T::INFO.name.as_char_ptr().cast_mut(),
- desc: T::INFO.desc.as_char_ptr().cast_mut(),
+ name: crate::str::as_char_ptr_in_const_context(T::INFO.name).cast_mut(),
+ desc: crate::str::as_char_ptr_in_const_context(T::INFO.desc).cast_mut(),

driver_features: drm::driver::FEAT_GEM,
ioctls: T::IOCTLS.as_ptr(),

--
2.50.1

Tamir Duberstein

unread,
Jul 19, 2025, 6:42:51 PM7/19/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Reviewed-by: Benno Lossin <los...@kernel.org>
Acked-by: Danilo Krummrich <da...@kernel.org>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 push_module_name(self) -> Self {
let module_name = this.module_name;

if !this.module_name.is_empty() {
- this = this.push_internal(module_name.as_bytes_with_nul());
+ this = this.push_internal(module_name.to_bytes_with_nul());

if N != 0 {
// Re-use the space taken by the NULL terminator and swap it with the '.' separator.

--
2.50.1

Tamir Duberstein

unread,
Jul 19, 2025, 6:42:52 PM7/19/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Reviewed-by: Benno Lossin <los...@kernel.org>
Acked-by: Danilo Krummrich <da...@kernel.org>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
2.50.1

Tamir Duberstein

unread,
Jul 19, 2025, 6:42:56 PM7/19/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Reviewed-by: Benno Lossin <los...@kernel.org>
Acked-by: Danilo Krummrich <da...@kernel.org>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 const fn into_raw<T: MiscDevice>(self) -> bindings::miscdevice {
// SAFETY: All zeros is valid for this C type.
let mut result: bindings::miscdevice = unsafe { MaybeUninit::zeroed().assume_init() };
result.minor = bindings::MISC_DYNAMIC_MINOR as ffi::c_int;
- result.name = self.name.as_char_ptr();
+ result.name = crate::str::as_char_ptr_in_const_context(self.name);
result.fops = MiscdeviceVTable::<T>::build();
result
}

--
2.50.1

Tamir Duberstein

unread,
Jul 19, 2025, 6:42:59 PM7/19/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Reviewed-by: Benno Lossin <los...@kernel.org>
Acked-by: Danilo Krummrich <da...@kernel.org>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 for DriverVTable {}
pub const fn create_phy_driver<T: Driver>() -> DriverVTable {
// INVARIANT: All the fields of `struct phy_driver` are initialized properly.
DriverVTable(Opaque::new(bindings::phy_driver {
- name: T::NAME.as_char_ptr().cast_mut(),
+ name: crate::str::as_char_ptr_in_const_context(T::NAME).cast_mut(),
flags: T::FLAGS,
phy_id: T::PHY_DEVICE_ID.id,
phy_id_mask: T::PHY_DEVICE_ID.mask_as_int(),

--
2.50.1

Tamir Duberstein

unread,
Jul 19, 2025, 6:43:01 PM7/19/25
to Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, 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 <gre...@linuxfoundation.org>
Reviewed-by: Alice Ryhl <alic...@google.com>
Reviewed-by: Benno Lossin <los...@kernel.org>
Acked-by: Danilo Krummrich <da...@kernel.org>
Signed-off-by: Tamir Duberstein <tam...@gmail.com>
---
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 DeviceId {
/// Create a new device id from an OF 'compatible' string.
pub const fn new(compatible: &'static CStr) -> Self {
- let src = compatible.as_bytes_with_nul();
+ let src = compatible.to_bytes_with_nul();
// Replace with `bindings::of_device_id::default()` once stabilized for `const`.
// SAFETY: FFI type is valid to be zero-initialized.
let mut of: bindings::of_device_id = unsafe { core::mem::zeroed() };

--
2.50.1

Miguel Ojeda

unread,
Jul 21, 2025, 4:20:15 PM7/21/25
to Tamir Duberstein, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org
On Sun, Jul 20, 2025 at 12:42 AM Tamir Duberstein <tam...@gmail.com> 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).

Did you apply this with `b4`? I think you picked Danilo's Acked-by,
which was for a subset, for other patches too. I can remove it when I
apply it.

(Greg's Acked-by may also have been just for his bits back in the
previous series, but in his case he didn't say anything explicitly)

Cheers,
Miguel

Tamir Duberstein

unread,
Jul 21, 2025, 4:31:55 PM7/21/25
to Miguel Ojeda, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org
On Mon, Jul 21, 2025 at 4:20 PM Miguel Ojeda
<miguel.oje...@gmail.com> wrote:
>
> On Sun, Jul 20, 2025 at 12:42 AM Tamir Duberstein <tam...@gmail.com> 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).
>
> Did you apply this with `b4`? I think you picked Danilo's Acked-by,
> which was for a subset, for other patches too. I can remove it when I
> apply it.

Yes, please do. I did indeed use b4 - and Alice also let me know that
this was not correct. Sorry about that! Same is true for 2a, I'll
reply to that email as well.

> (Greg's Acked-by may also have been just for his bits back in the
> previous series, but in his case he didn't say anything explicitly)

I believe it was for everything, as he didn't specify otherwise.

Miguel Ojeda

unread,
Jul 21, 2025, 4:49:35 PM7/21/25
to Tamir Duberstein, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org
On Mon, Jul 21, 2025 at 10:31 PM Tamir Duberstein <tam...@gmail.com> wrote:
>
> Yes, please do. I did indeed use b4 - and Alice also let me know that
> this was not correct. Sorry about that! Same is true for 2a, I'll
> reply to that email as well.

Sounds good, thanks for confirming!

> I believe it was for everything, as he didn't specify otherwise.

Sometimes maintainers may mean it only for the things they actually
maintain, especially for big series where it may be obvious -- in
Greg's case, it is harder to assess since the series is small and he
is a top maintainer anyway.

Cheers,
Miguel

Viresh Kumar

unread,
Jul 26, 2025, 4:31:10 AM7/26/25
to Tamir Duberstein, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org
Acked-by: Viresh Kumar <viresh...@linaro.org>

--
viresh

Andreas Hindborg

unread,
Aug 8, 2025, 5:48:25 AM8/8/25
to Tamir Duberstein, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Alice Ryhl, Trevor Gross, Danilo Krummrich, Greg Kroah-Hartman, Dave Ertman, Ira Weiny, Leon Romanovsky, Breno Leitao, Rafael J. Wysocki, Viresh Kumar, Luis Chamberlain, Russ Weight, Brendan Higgins, David Gow, Rae Moar, FUJITA Tomonori, Rob Herring, Saravana Kannan, dri-...@lists.freedesktop.org, linux-...@vger.kernel.org, rust-fo...@vger.kernel.org, linu...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, net...@vger.kernel.org, devic...@vger.kernel.org, Tamir Duberstein
"Tamir Duberstein" <tam...@gmail.com> writes:

> Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
> avoid methods that only exist on the latter.
>
> Also avoid `Deref<Target=BStr> for CStr` as that impl doesn't exist on
> `core::ffi::CStr`.
>
> Link: https://github.com/Rust-for-Linux/linux/issues/1075
> Acked-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>
> Reviewed-by: Alice Ryhl <alic...@google.com>
> Reviewed-by: Benno Lossin <los...@kernel.org>
> Acked-by: Danilo Krummrich <da...@kernel.org>
> Signed-off-by: Tamir Duberstein <tam...@gmail.com>

Acked-by: Andreas Hindborg <a.hin...@kernel.org>


Best regards,
Andreas Hindborg



Reply all
Reply to author
Forward
0 new messages