Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: miscdevice: remove unnecessary import

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

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://lore.kernel.org/r/20250704-cstr-include-miscdevice-v1-1-bb9e9b17c892@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Tamir Duberstein and committed by
Greg Kroah-Hartman
db15ec7a 8f5d9bed

-1
-1
rust/kernel/miscdevice.rs
··· 17 17 mm::virt::VmaNew, 18 18 prelude::*, 19 19 seq_file::SeqFile, 20 - str::CStr, 21 20 types::{ForeignOwnable, Opaque}, 22 21 }; 23 22 use core::{marker::PhantomData, mem::MaybeUninit, pin::Pin};