Skip to contentSkip to conversation

rust: devres: remove unused import

PATCH In review Tamir Duberstein 2 participants 4 messages Jul 4, 2025 – Jul 5, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rust: devres: remove unused import

As far as I can tell, this was never used.

---
 rust/kernel/devres.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/devres.rs +1 -1
index d0e6c6e162c2..dff443908278 100644
@@ -47,7 +47,7 @@ struct DevresInner<T> {
 /// # Examples
 ///
 /// ```no_run
-/// # use kernel::{bindings, c_str, device::{Bound, Device}, devres::Devres, io::{Io, IoRaw}};
+/// # use kernel::{bindings, device::{Bound, Device}, devres::Devres, io::{Io, IoRaw}};
 /// # use core::ops::Deref;
 ///
 /// // See also [`pci::Bar`] for a real example.

---
base-commit: 769e324b66b0d92d04f315d0c45a0f72737c7494
change-id: 20250704-cstr-include-devres-151c26d36bbc

Best regards,

Signature · 1 line
Tamir Duberstein <[email protected]>
maintainer
#1 lore raw
Quoted 3 lines · Tamir Duberstein

As far as I can tell, this was never used.

Do you want me to take this and the other include fixups through the driver-core tree or do you need them in rust-next as prerequisite for your CStr series?

#2 lore raw
Quoted 8 lines · Danilo Krummrich
Quoted 3 lines · Tamir Duberstein

As far as I can tell, this was never used.

Do you want me to take this and the other include fixups through the driver-core tree or do you need them in rust-next as prerequisite for your CStr series?

If you can take them through the driver-core tree, that would be great. They're needed for the CStr workstream but not for the first (out of 5) cycle.

Thanks!