]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: Simplify `transmute` and `transmute_mut` in fwsec.rs
authorDaniel del Castillo <delcastillodelarosadaniel@gmail.com>
Tue, 4 Nov 2025 19:37:48 +0000 (20:37 +0100)
committerAlexandre Courbot <acourbot@nvidia.com>
Fri, 7 Nov 2025 14:10:44 +0000 (23:10 +0900)
commit473f778592e499c0dd0e1dd9fce8eb80923355d9
tree69d5286f07f9b9f953c6325e857571e03df74c7f
parent173c99b85aa05387fcfb3231293124c5d611d167
gpu: nova-core: Simplify `transmute` and `transmute_mut` in fwsec.rs

This patch solves one of the existing mentions of COHA, a task
in the Nova task list about improving the `CoherentAllocation` API.
It uses the new `from_bytes` method from the `FromBytes` trait as
well as the `as_slice` and `as_slice_mut` methods from
`CoherentAllocation`.

Signed-off-by: Daniel del Castillo <delcastillodelarosadaniel@gmail.com>
[acourbot@nvidia.com: set prefix to "gpu: nova-core:".]
[acourbot@nvidia.com: fix merge conflict after imports refactor.]
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Message-ID: <20251104193756.57726-1-delcastillodelarosadaniel@gmail.com>
drivers/gpu/nova-core/firmware/fwsec.rs