summaryrefslogtreecommitdiff
path: root/rust/kernel/block/mq.rs
diff options
context:
space:
mode:
authorAliet Exposito Garcia <aliet.exposito@gmail.com>2024-09-18 18:51:14 -0400
committerMiguel Ojeda <ojeda@kernel.org>2024-10-07 21:39:57 +0200
commit67b3fa4288fa634a69ac7f559b6d2a57df0ad586 (patch)
tree979beebef0cec09404f90136609382fff598f086 /rust/kernel/block/mq.rs
parent5ed147473458f8c20f908a03227d8f5bb3cb8f7d (diff)
rust: kernel: move `FromBytes` and `AsBytes` traits to a new `transmute` module
Refactor the `FromBytes` and `AsBytes` traits from `types.rs` into a new `transmute.rs` module: - Add `rust/kernel/transmute.rs` with the definitions of `FromBytes` and `AsBytes`. - Remove the same trait definitions from `rust/kernel/types.rs`. - Update `rust/kernel/uaccess.rs` to import `AsBytes` and `FromBytes` from `transmute.rs`. The traits and their implementations remain unchanged. Suggested-by: Benno Lossin <benno.lossin@proton.me> Link: https://github.com/Rust-for-Linux/linux/issues/1117 Signed-off-by: Aliet Exposito Garcia <aliet.exposito@gmail.com> Reviewed-by: Fiona Behrens <me@kloenk.dev> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Link: https://lore.kernel.org/r/20240918225115.2309224-2-aliet.exposito@gmail.com [ Rebased on top of the lints series and slightly reworded. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/block/mq.rs')
0 files changed, 0 insertions, 0 deletions