[PATCH] rust: platform: remove unnecessary import

Tamir Duberstein posted 1 patch 3 months ago
rust/kernel/platform.rs | 1 -
1 file changed, 1 deletion(-)
[PATCH] rust: platform: remove unnecessary import
Posted by Tamir Duberstein 3 months ago
`kernel::str::CStr` is included in the prelude.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
---
 rust/kernel/platform.rs | 1 -
 1 file changed, 1 deletion(-)

diff --git a/rust/kernel/platform.rs b/rust/kernel/platform.rs
index 0a6a6be732b2..12359d26bc6a 100644
--- a/rust/kernel/platform.rs
+++ b/rust/kernel/platform.rs
@@ -9,7 +9,6 @@
     error::{to_result, Result},
     of,
     prelude::*,
-    str::CStr,
     types::{ForeignOwnable, Opaque},
     ThisModule,
 };

---
base-commit: 769e324b66b0d92d04f315d0c45a0f72737c7494
change-id: 20250704-cstr-include-platform-0d11ee834226

Best regards,
--  
Tamir Duberstein <tamird@gmail.com>
Re: [PATCH] rust: platform: remove unnecessary import
Posted by Danilo Krummrich 3 months ago
On Fri, Jul 04, 2025 at 03:49:54PM -0400, Tamir Duberstein wrote:
> `kernel::str::CStr` is included in the prelude.
> 
> Signed-off-by: Tamir Duberstein <tamird@gmail.com>

Applied to driver-core-testing, thanks!