]> Gentwo Git Trees - linux/.git/commit
gpu: nova-core: replace `as` with `from` conversions where possible
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 28 Oct 2025 23:12:09 +0000 (08:12 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Thu, 30 Oct 2025 01:35:34 +0000 (10:35 +0900)
commit9a3c2f8a4f84960a48c056d0da88de3d09e6d622
treef35dcbc27276d681769afb131641b69bb6432350
parent97ad568cd6a58804129ba071f3258b5c4782fb0d
gpu: nova-core: replace `as` with `from` conversions where possible

The `as` operator is best avoided as it silently drops bits if the
destination type is smaller that the source.

For data types where this is clearly not the case, use `from` to
unambiguously signal that these conversions are lossless.

Acked-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Message-ID: <20251029-nova-as-v3-1-6a30c7333ad9@nvidia.com>
drivers/gpu/nova-core/falcon/hal/ga102.rs
drivers/gpu/nova-core/firmware/fwsec.rs
drivers/gpu/nova-core/vbios.rs