summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2025-10-29 08:12:09 +0900
committerAlexandre Courbot <acourbot@nvidia.com>2025-10-30 10:35:34 +0900
commit9a3c2f8a4f84960a48c056d0da88de3d09e6d622 (patch)
treef35dcbc27276d681769afb131641b69bb6432350 /rust/kernel
parent97ad568cd6a58804129ba071f3258b5c4782fb0d (diff)
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>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions