rust: Move unfit code out of `rust/kernel/types.rs`
Status from this message: Applied to `rust-next` -- thanks everyone!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | rust: Move `FromBytes` and `AsBytes` traits to a new `transmute` modulerust/ rust/ rust/ +1 more | +69 | 2 replies | |
| 2/2 | rust: Move `ARef<T>` and `AlwaysRefCounted` to new `sync::aref` moduledrivers/ rust/ rust/ +6 more | +167 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Benno Lossin | Fiona Behrens |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] rust: Move unfit code out of `rust/kernel/types.rs`
Hello all,
These are the patches for a good first issue that Benno Lossin oppened on https://github.com/Rust-for-Linux/linux/issues/1117
According to the issue description, the file rust/kernel/types.rs is a rather non-descriptive, general file that contains code that might be better suited elsewhere:
- ARef<T> and AlwaysRefCounted should be in rust/kernel/sync/aref.rs
- The FromBytes and AsBytes traits and implementations should be in rust/kernel/transmute.rs
Aliet Exposito Garcia (2):
rust: Move FromBytes and AsBytes traits to a new transmute
module
rust: Move ARef<T> and AlwaysRefCounted to new sync::aref module
drivers/block/rnull.rs | 3 +- rust/kernel/block/mq.rs | 6 +- rust/kernel/block/mq/operations.rs | 2 +- rust/kernel/block/mq/request.rs | 3 +- rust/kernel/device.rs | 8 +- rust/kernel/lib.rs | 1 + rust/kernel/sync.rs | 1 + rust/kernel/sync/aref.rs | 152 ++++++++++++++++++++ rust/kernel/task.rs | 4 +- rust/kernel/transmute.rs | 67 +++++++++ rust/kernel/types.rs | 216 +---------------------------- rust/kernel/uaccess.rs | 2 +- 12 files changed, 236 insertions(+), 229 deletions(-) create mode 100644 rust/kernel/sync/aref.rs create mode 100644 rust/kernel/transmute.rs
base-commit: a2f11547052001bd448ccec81dd1e68409078fbb
Signature · 1 line
2.46.0