]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: faux: use "kernel vertical" style for imports
authorDanilo Krummrich <dakr@kernel.org>
Mon, 5 Jan 2026 14:19:46 +0000 (15:19 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 7 Jan 2026 18:56:00 +0000 (19:56 +0100)
Convert all imports to use "kernel vertical" style.

With this, subsequent patches neither introduce unrelated changes nor
leave an inconsistent import pattern.

While at it, drop unnecessary imports covered by prelude::*.

Link: https://docs.kernel.org/rust/coding-guidelines.html#imports
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20260105142123.95030-5-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/faux.rs

index 7fe2dd197e37376c77b37b57159ffd89d105136b..43b4974f48cd272c9e28e79d15e85d15f080a6ae 100644 (file)
@@ -6,8 +6,17 @@
 //!
 //! C header: [`include/linux/device/faux.h`](srctree/include/linux/device/faux.h)
 
-use crate::{bindings, device, error::code::*, prelude::*};
-use core::ptr::{addr_of_mut, null, null_mut, NonNull};
+use crate::{
+    bindings,
+    device,
+    prelude::*, //
+};
+use core::ptr::{
+    addr_of_mut,
+    null,
+    null_mut,
+    NonNull, //
+};
 
 /// The registration of a faux device.
 ///