diff options
| author | Andreas Hindborg <a.hindborg@kernel.org> | 2026-06-04 22:11:16 +0200 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2026-06-10 09:07:12 +0200 |
| commit | dea66841b9f87916e47b88a2c4a408e118cbf3ac (patch) | |
| tree | 66757375955b94a99258cdd720fc6a760841ded2 /rust/kernel | |
| parent | 98cc68794c003bc76fc9da2e8a075e947eee5921 (diff) | |
rust: page: use the "kernel vertical" imports style
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 [1]
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>
Diffstat (limited to 'rust/kernel')
| -rw-r--r-- | rust/kernel/page.rs | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/rust/kernel/page.rs b/rust/kernel/page.rs index adecb200c654..8affd8262891 100644 --- a/rust/kernel/page.rs +++ b/rust/kernel/page.rs @@ -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. |
