]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: replace use of `as` with functions from `num`
authorAlexandre Courbot <acourbot@nvidia.com>
Mon, 27 Oct 2025 14:12:31 +0000 (23:12 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Fri, 7 Nov 2025 23:22:45 +0000 (08:22 +0900)
commit84e2b401bcc551e7c2e1a995f90cce421bce5bfd
tree22c198ec547b70bb4dce9ade00601d5eb0a8eb84
parent5525ac03ca7adec61d39f3fd3a143b5e294bdff7
gpu: nova-core: replace use of `as` with functions from `num`

Use the newly-introduced `num` module to replace the use of `as`
wherever it is safe to do. This ensures that a given conversion cannot
lose data if its source or destination type ever changes.

Acked-by: Danilo Krummrich <dakr@kernel.org>
[acourbot@nvidia.com: fix merge conflicts after rebase.]
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Message-ID: <20251029-nova-as-v3-5-6a30c7333ad9@nvidia.com>
drivers/gpu/nova-core/falcon.rs
drivers/gpu/nova-core/fb.rs
drivers/gpu/nova-core/firmware.rs
drivers/gpu/nova-core/firmware/booter.rs
drivers/gpu/nova-core/firmware/fwsec.rs
drivers/gpu/nova-core/firmware/gsp.rs
drivers/gpu/nova-core/firmware/riscv.rs
drivers/gpu/nova-core/num.rs
drivers/gpu/nova-core/regs.rs
drivers/gpu/nova-core/vbios.rs