public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] rust: auxiliary: use "kernel vertical" style for imports
@ 2026-01-05 14:19 Danilo Krummrich
  2026-01-05 14:19 ` [PATCH 2/5] rust: platform: " Danilo Krummrich
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Danilo Krummrich @ 2026-01-05 14:19 UTC (permalink / raw)
  To: gregkh, rafael, ojeda, boqun.feng, gary, bjorn3_gh, lossin,
	a.hindborg, aliceryhl, tmgross, david.m.ertman, ira.weiny, leon
  Cc: linux-kernel, rust-for-linux, linux-usb, Danilo Krummrich

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
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
---
 rust/kernel/auxiliary.rs              | 21 ++++++++++++++++-----
 samples/rust/rust_driver_auxiliary.rs |  8 +++++---
 2 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/rust/kernel/auxiliary.rs b/rust/kernel/auxiliary.rs
index 56f3c180e8f6..f8273cf165dc 100644
--- a/rust/kernel/auxiliary.rs
+++ b/rust/kernel/auxiliary.rs
@@ -5,19 +5,30 @@
 //! C header: [`include/linux/auxiliary_bus.h`](srctree/include/linux/auxiliary_bus.h)
 
 use crate::{
-    bindings, container_of, device,
-    device_id::{RawDeviceId, RawDeviceIdIndex},
+    bindings,
+    container_of,
+    device,
+    device_id::{
+        RawDeviceId,
+        RawDeviceIdIndex, //
+    },
     devres::Devres,
     driver,
-    error::{from_result, to_result, Result},
+    error::{
+        from_result,
+        to_result, //
+    },
     prelude::*,
     types::Opaque,
-    ThisModule,
+    ThisModule, //
 };
 use core::{
     marker::PhantomData,
     mem::offset_of,
-    ptr::{addr_of_mut, NonNull},
+    ptr::{
+        addr_of_mut,
+        NonNull, //
+    },
 };
 
 /// An adapter for the registration of auxiliary drivers.
diff --git a/samples/rust/rust_driver_auxiliary.rs b/samples/rust/rust_driver_auxiliary.rs
index 1e4fb23cfcb0..f148124fe81f 100644
--- a/samples/rust/rust_driver_auxiliary.rs
+++ b/samples/rust/rust_driver_auxiliary.rs
@@ -6,13 +6,15 @@
 
 use kernel::{
     auxiliary,
-    device::{Bound, Core},
+    device::{
+        Bound,
+        Core, //
+    },
     devres::Devres,
     driver,
-    error::Error,
     pci,
     prelude::*,
-    InPlaceModule,
+    InPlaceModule, //
 };
 
 use core::any::TypeId;

base-commit: 7bf97992afa4e815f4ed84638340e2a93de65504
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-01-07 21:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-05 14:19 [PATCH 1/5] rust: auxiliary: use "kernel vertical" style for imports Danilo Krummrich
2026-01-05 14:19 ` [PATCH 2/5] rust: platform: " Danilo Krummrich
2026-01-07 15:09   ` Greg KH
2026-01-07 21:29   ` Danilo Krummrich
2026-01-05 14:19 ` [PATCH 3/5] rust: driver-core: " Danilo Krummrich
2026-01-07 15:09   ` Greg KH
2026-01-07 21:30   ` Danilo Krummrich
2026-01-05 14:19 ` [PATCH 4/5] rust: usb: " Danilo Krummrich
2026-01-05 19:36   ` Daniel Almeida
2026-01-05 23:41     ` Miguel Ojeda
2026-01-06 19:26   ` Danilo Krummrich
2026-01-07 15:09     ` Greg KH
2026-01-05 14:19 ` [PATCH 5/5] rust: faux: " Danilo Krummrich
2026-01-07 15:09   ` Greg KH
2026-01-07 21:30   ` Danilo Krummrich
2026-01-07 15:09 ` [PATCH 1/5] rust: auxiliary: " Greg KH
2026-01-07 21:29 ` Danilo Krummrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox