mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 06:04:44 +01:00
The util.rs module contained a single helper function, str_from_null_terminated(), which duplicated functionality that is now available in core::ffi::CStr. Specifically, CStr::from_bytes_until_nul() is available in the kernel's minimum supported Rust version (1.78.0), so it time to stop using this custom workaround. Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com> Signed-off-by: John Hubbard <jhubbard@nvidia.com> Link: https://patch.msgid.link/20260106035226.48853-2-jhubbard@nvidia.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
32 lines
567 B
Rust
32 lines
567 B
Rust
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
//! Nova Core GPU Driver
|
|
|
|
#[macro_use]
|
|
mod bitfield;
|
|
|
|
mod dma;
|
|
mod driver;
|
|
mod falcon;
|
|
mod fb;
|
|
mod firmware;
|
|
mod gfw;
|
|
mod gpu;
|
|
mod gsp;
|
|
mod num;
|
|
mod regs;
|
|
mod sbuffer;
|
|
mod vbios;
|
|
|
|
pub(crate) const MODULE_NAME: &kernel::str::CStr = <LocalModule as kernel::ModuleMetadata>::NAME;
|
|
|
|
kernel::module_pci_driver! {
|
|
type: driver::NovaCore,
|
|
name: "NovaCore",
|
|
authors: ["Danilo Krummrich"],
|
|
description: "Nova Core GPU driver",
|
|
license: "GPL v2",
|
|
firmware: [],
|
|
}
|
|
|
|
kernel::module_firmware!(firmware::ModInfoBuilder);
|