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: faux: use "kernel vertical" style for imports

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>

+11 -2
+11 -2
rust/kernel/faux.rs
··· 6 6 //! 7 7 //! C header: [`include/linux/device/faux.h`](srctree/include/linux/device/faux.h) 8 8 9 - use crate::{bindings, device, error::code::*, prelude::*}; 10 - use core::ptr::{addr_of_mut, null, null_mut, NonNull}; 9 + use crate::{ 10 + bindings, 11 + device, 12 + prelude::*, // 13 + }; 14 + use core::ptr::{ 15 + addr_of_mut, 16 + null, 17 + null_mut, 18 + NonNull, // 19 + }; 11 20 12 21 /// The registration of a faux device. 13 22 ///