Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gpu: nova-core: make Chipset::arch() const

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`.

Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260306-turing_prep-v11-10-8f0042c5d026@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>

+1 -1
+1 -1
drivers/gpu/nova-core/gpu.rs
··· 92 92 }); 93 93 94 94 impl Chipset { 95 - pub(crate) fn arch(&self) -> Architecture { 95 + pub(crate) const fn arch(self) -> Architecture { 96 96 match self { 97 97 Self::TU102 | Self::TU104 | Self::TU106 | Self::TU117 | Self::TU116 => { 98 98 Architecture::Turing