rust: use vertical import style and remove redundant imports
Get series with b4
b4 am [email protected] change-id 20260519-miscdev-use-format-9ab7e83b1c11Versions newest first
- v3 Latest7 patches 11 repliesIn review
- v25 patches 8 repliesSuperseded
- v12 patches 2 repliesSuperseded
Changes in v3 from the cover letter
- Add trailing // to last items and closing braces in block/mq imports
- Add rnull vertical import style
- Add doctest vertical import style
- Link to v2: https://lore.kernel.org/r/[email protected]
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | rust: miscdevice: use vertical import stylerust/ | +28 | 0 replies | |
| 2/7 | samples: rust_misc_device: use vertical import stylesamples/ | +28 | 0 replies | |
| 3/7 | rust: miscdevice: remove redundant importsrust/ | +1 | 0 replies | |
| 4/7 | rust: block: mq: use vertical import stylerust/ rust/ rust/ +1 more | +59 | 0 replies | |
| 5/7 | rust: block: mq: remove redundant imports and formatrust/ rust/ rust/ +1 more | +9 | 0 replies | |
| 6/7 | rust: block: rnull: use vertical import styledrivers/ drivers/ | +32 | 1 reply | |
| 7/7 | rust: doctest: use vertical import stylescripts/ | +9 | 2 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Onur Özkan | Andreas Hindborg | David Gow |
|---|---|---|---|
| 1/7 | R-b | ||
| 2/7 | R-b | ||
| 3/7 | R-b | ||
| 4/7 | R-b | ||
| 5/7 | R-b | ||
| 6/7 | A-b | ||
| 7/7 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v3 0/7] rust: use vertical import style and remove redundant imports
Adopt the vertical import style and drop redundant imports already re-exported via kernel::prelude.
Changes include:
- Convert use statements to vertical import style in miscdevice, samples, doctest, and block/mq
- Remove imports covered by prelude and apply minor formatting
---
Changes in v3:
- Add trailing // to last items and closing braces in block/mq imports
- Add rnull vertical import style
- Add doctest vertical import style
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Reformat use statements and drop redundant imports in
rust/kernel/block/mq
- Drop redundant imports in rust/kernel/miscdevice
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Alvin Sun (7):
rust: miscdevice: use vertical import style
samples: rust_misc_device: use vertical import style
rust: miscdevice: remove redundant imports
rust: block: mq: use vertical import style
rust: block: mq: remove redundant imports and format
rust: block: rnull: use vertical import style
rust: doctest: use vertical import style
drivers/block/rnull/configfs.rs | 27 +++++++++++++++++++++------ drivers/block/rnull/rnull.rs | 15 +++++++++++---- rust/kernel/block/mq/gen_disk.rs | 24 ++++++++++++++++++------ rust/kernel/block/mq/operations.rs | 14 ++++++++++---- rust/kernel/block/mq/request.rs | 16 +++++++++++----- rust/kernel/block/mq/tag_set.rs | 28 ++++++++++++++-------------- rust/kernel/miscdevice.rs | 23 +++++++++++++++++------ samples/rust/rust_misc_device.rs | 34 ++++++++++++++++++++++++++++------ scripts/rustdoc_test_gen.rs | 11 +++++++++-- 9 files changed, 139 insertions(+), 53 deletions(-)
---
base-commit: 5200f5f493f79f14bbdc349e402a40dfb32f23c8
change-id: 20260519-miscdev-use-format-9ab7e83b1c11
Best regards,
Signature · 1 line
Alvin Sun <[email protected]>