samples: rust_dma: use vertical import style
Subsystems (3)
PATCH v2 1/1 samples: rust_dma: use vertical import style
Convert use imports to vertical layout for better readability and maintainability.
---
Came across a recent commit bc58905eb07 ("samples: rust_misc_device: use vertical import style") and found a few more locations that could benefit from this cleanup. No functional changes.
Separating out patches per-subsystem as per the review feedback in [0].
Tested via:
$ make LLVM=1 rustfmtcheck || echo "fail" $
[0]: https://lore.kernel.org/lkml/[email protected]/
---
Changes in v2:
- Link Mauve: Relocated empty terminal comment from middle of imports to
end of all imports
- Link to v1: https://patch.msgid.link/[email protected]
To: Danilo Krummrich <[email protected]>
To: Abdiel Janulgue <[email protected]>
To: Daniel Almeida <[email protected]>
To: Robin Murphy <[email protected]>
To: Andreas Hindborg <[email protected]>
To: Miguel Ojeda <[email protected]>
To: Boqun Feng <[email protected]>
To: Gary Guo <[email protected]>
To: Björn Roy Baron <[email protected]>
To: Benno Lossin <[email protected]>
To: Alice Ryhl <[email protected]>
To: Trevor Gross <[email protected]>
To: Tamir Duberstein <[email protected]>
To: Alexandre Courbot <[email protected]>
To: Onur Özkan <[email protected]>
To: Nathan Chancellor <[email protected]>
To: Nick Desaulniers <[email protected]>
To: Bill Wendling <[email protected]>
To: Justin Stitt <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- samples/rust/rust_dma.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
samples/rust/rust_dma.rs +7 -3
@@ -12,10 +12,14 @@ Device, DmaMask, // }, - page, pci, + page, + pci, prelude::*, - scatterlist::{Owned, SGTable}, - sync::aref::ARef, + scatterlist::{ + Owned, + SGTable, // + }, + sync::aref::ARef, // };#[pin_data( PinnedDrop )]
---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260705-rfl-vert-imp-d12bdbe397c7
Best regards,
Signature · 1 line
Guru Das Srinagesh <[email protected]>
Quoted 1 line · Guru Das Srinagesh
[PATCH v2] samples:
rust_dma: use vertical import style
Applied, thanks!
Branch: driver-core-testing
Tree: git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core.git
[1/1] samples: rust_dma: use vertical import style
commit: fde6b526a9ee
The patch will appear in the next linux-next integration (typically within 24 hours on weekdays).
The patch is in the driver-core-testing branch and will be promoted to driver-core-next after validation.