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: use core library's CStr instead of kernel one

The kernel's own CStr type has been replaced by the one in the core
library, and is now an alias to the latter. Change our imports to
directly reference the actual type.

Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260217-nova-misc-v3-7-b4e2d45eafbc@nvidia.com
[acourbot@nvidia.com: remove unneeded imports reorganization in
firmware/gsp.rs]
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>

+2 -2
+1 -1
drivers/gpu/nova-core/firmware.rs
··· 425 425 } 426 426 427 427 pub(crate) const fn create( 428 - module_name: &'static kernel::str::CStr, 428 + module_name: &'static core::ffi::CStr, 429 429 ) -> firmware::ModInfoBuilder<N> { 430 430 let mut this = Self(firmware::ModInfoBuilder::new(module_name)); 431 431 let mut i = 0;
+1 -1
drivers/gpu/nova-core/nova_core.rs
··· 18 18 mod sbuffer; 19 19 mod vbios; 20 20 21 - pub(crate) const MODULE_NAME: &kernel::str::CStr = <LocalModule as kernel::ModuleMetadata>::NAME; 21 + pub(crate) const MODULE_NAME: &core::ffi::CStr = <LocalModule as kernel::ModuleMetadata>::NAME; 22 22 23 23 kernel::module_pci_driver! { 24 24 type: driver::NovaCore,