Files
linux/rust/kernel
FUJITA Tomonori 8510ef5e3c rust: device: Remove explicit import of CStrExt
Remove the explicit import of CStrExt. When CONFIG_PRINTK is disabled
this import causes a build error:

error: unused import: `crate::str::CStrExt`
  --> rust/kernel/device.rs:17:5
   |
17 | use crate::str::CStrExt as _;
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D unused-imports` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_imports)]`

error: aborting due to 1 previous error

CStrExt is covered by prelude::* so the explicit import is redundant.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Fixes: 3b83f5d5e7 ("rust: replace `CStr` with `core::ffi::CStr`")
Link: https://patch.msgid.link/20260106000320.2593800-1-fujita.tomonori@gmail.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2026-01-06 21:18:31 +01:00
..
2025-10-20 04:04:23 +02:00
2025-11-05 00:05:38 +01:00
2025-11-13 20:17:24 +11:00
2025-11-29 10:41:09 -08:00
2025-11-04 13:25:29 +01:00
2025-07-23 02:05:58 +02:00
2025-07-23 02:05:58 +02:00
2025-10-22 07:15:19 +02:00
2026-01-02 19:04:12 +01:00
2025-08-13 17:40:28 +02:00
2025-09-06 13:27:20 +02:00
2025-11-24 09:14:47 +13:00
2025-11-13 20:17:24 +11:00
2025-07-21 01:16:35 +02:00
2025-08-21 16:58:07 +02:00
2025-11-13 10:21:01 +01:00
2025-11-16 21:56:57 +01:00
2024-11-04 16:21:44 -05:00