On Sun Mar 1, 2026 at 11:03 PM JST, Alexandre Courbot wrote: > We will use this method from const context. > > Also take `self` by value since it is the size of a primitive type and > implements `Copy`. > > Signed-off-by: Alexandre Courbot <[email protected]> > --- > drivers/gpu/nova-core/gpu.rs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/nova-core/gpu.rs b/drivers/gpu/nova-core/gpu.rs > index 60c85fffaeaf..c14d411c6759 100644 > --- a/drivers/gpu/nova-core/gpu.rs > +++ b/drivers/gpu/nova-core/gpu.rs > @@ -92,7 +92,7 @@ fn try_from(value: u32) -> Result<Self, Self::Error> { > }); > > impl Chipset { > - pub(crate) fn arch(&self) -> Architecture { > + pub(crate) const fn arch(self) -> Architecture { > match self { > Self::TU102 | Self::TU104 | Self::TU106 | Self::TU117 | > Self::TU116 => { > Architecture::Turing
Reviewed-by: Eliot Courtney <[email protected]>
