]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: page: use the "kernel vertical" imports style
authorAndreas Hindborg <a.hindborg@kernel.org>
Thu, 4 Jun 2026 20:11:16 +0000 (22:11 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 10 Jun 2026 07:07:12 +0000 (09:07 +0200)
Convert the imports to use the "kernel vertical" imports style [1].

No functional changes intended.

Link: https://docs.kernel.org/rust/coding-guidelines.html#imports
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://patch.msgid.link/20260604-unique-ref-v17-4-7b4c3d2930b9@kernel.org
[ Picked from larger series and reworded. Adjusted the `error::`
  block too. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/page.rs

index adecb200c65495a92b2a10fc47bfae592804cd3e..8affd8262891baea1cb58f6757acb19650a8ae41 100644 (file)
@@ -3,17 +3,25 @@
 //! Kernel page allocation and management.
 
 use crate::{
-    alloc::{AllocError, Flags},
+    alloc::{
+        AllocError,
+        Flags, //
+    },
     bindings,
-    error::code::*,
-    error::Result,
-    uaccess::UserSliceReader,
+    error::{
+        code::*,
+        Result, //
+    },
+    uaccess::UserSliceReader, //
 };
 use core::{
     marker::PhantomData,
     mem::ManuallyDrop,
     ops::Deref,
-    ptr::{self, NonNull},
+    ptr::{
+        self,
+        NonNull, //
+    }, //
 };
 
 /// A bitwise shift for the page size.