Re: [PATCH 2/2] gpu: nova-core: use FromSafeCast wherever possible
From: Eliot Courtney
Date: Fri Aug 28 2026 - 01:46:00 EST
On Fri Aug 28, 2026 at 2:33 PM JST, Alexandre Courbot wrote:
> `FromSafeCast` should be preferred to the `*_as_*` family of functions
> when it can be used (i.e. in non-const contexts), as it requires a
> single import to perform all valid conversions.
>
> After this patch, the only remaining references to the `casts` module
> are those done in const context, which means the `casts` import can be
> removed once these are converted to use the `cv!` macro.
>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> ---
Reviewed-by: Eliot Courtney <ecourtney@xxxxxxxxxx>