[RESEND PATCH v2 0/5] drm/nova: replace `transmute` with `zerocopy`
Pedro Yudi Honda <[email protected]>
| Newsgroups | dev.linux.lists.nova-gpu,org.freedesktop.lists.dri-devel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
From: Pedro Yudi Honda <[email protected]> This series follows the introduction of `zerocopy` to rust-next and replaces `transmute` traits with `zerocopy` traits. These changes are mechanical and don't alter functionality. This series is built upon Nicolás' recent patch, and does not touch gsp bindings. Specifically, the trait `transmute::FromBytes` is replaced by `zerocopy::FromBytes` and the trait `transmute::AsBytes` is replaced by `zerocopy::IntoBytes`. Additional traits such as `zerocopy::Immutable` and `zerocopy::KnownLayout` are implemented as necessary. Resent because of wrong target list and wrong email in "From:". Pedro Yudi Honda (5): drm/nova: use `zerocopy` in firmware.rs drm/nova: use `zerocopy` in booter.rs drm/nova: use `zerocopy` in fwsec.rs drm/nova: use `zerocopy` in bootloader.rs drm/nova: use `zerocopy` in riscv.rs drivers/gpu/nova-core/firmware.rs | 10 ++-- drivers/gpu/nova-core/firmware/booter.rs | 26 +++------- drivers/gpu/nova-core/firmware/fwsec.rs | 49 +++++-------------- .../nova-core/firmware/fwsec/bootloader.rs | 18 ++----- drivers/gpu/nova-core/firmware/riscv.rs | 10 ++-- 5 files changed, 30 insertions(+), 83 deletions(-) -- 2.34.1