aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorAliet Exposito Garcia <[email protected]>2024-09-18 22:51:14 +0000
committerMiguel Ojeda <[email protected]>2024-10-09 22:33:42 +0000
commitce1c54fdff7c4556b08f5b875a331d8952e8b6b7 (patch)
tree17a00cf119f148462d4946c67f2868db640b8ac1 /rust/helpers/helpers.c
parentrust: error: optimize error type to use nonzero (diff)
downloadkernel-ce1c54fdff7c4556b08f5b875a331d8952e8b6b7.tar.gz
kernel-ce1c54fdff7c4556b08f5b875a331d8952e8b6b7.zip
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 <[email protected]> Link: https://github.com/Rust-for-Linux/linux/issues/1117 Signed-off-by: Aliet Exposito Garcia <[email protected]> Reviewed-by: Fiona Behrens <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Rebased on top of the lints series and slightly reworded. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions