Skip to contentSkip to conversation

rust: auxiliary: remove unnecessary import

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

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

PATCH 1/1 rust: auxiliary: remove unnecessary import

kernel::str::CStr is included in the prelude.

---
 rust/kernel/auxiliary.rs              | 1 -
 samples/rust/rust_driver_auxiliary.rs | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)
rust/kernel/auxiliary.rs +0 -1
index d2cfe1eeefb6..4fe62bbf8b3a 100644
@@ -10,7 +10,6 @@
     driver,
     error::{to_result, Result},
     prelude::*,
-    str::CStr,
     types::{ForeignOwnable, Opaque},
     ThisModule,
 };
samples/rust/rust_driver_auxiliary.rs +1 -2
index abf3d55ed249..f2a820683fc3 100644
@@ -5,8 +5,7 @@
 //! To make this driver probe, QEMU must be run with `-device pci-testdev`.
 
 use kernel::{
-    auxiliary, bindings, c_str, device::Core, driver, error::Error, pci, prelude::*, str::CStr,
-    InPlaceModule,
+    auxiliary, bindings, c_str, device::Core, driver, error::Error, pci, prelude::*, InPlaceModule,
 };
 
 use pin_init::PinInit;

---
base-commit: 769e324b66b0d92d04f315d0c45a0f72737c7494
change-id: 20250704-cstr-include-aux-7847969762a8

Best regards,

Signature · 1 line
Tamir Duberstein <[email protected]>