From: Gary Guo Date: Fri, 23 Jan 2026 17:19:40 +0000 (+0000) Subject: gpu: nova-core: remove imports available via prelude X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b89cea1119386480151a6ca2bfbab54ce569ba7;p=thirdparty%2Flinux.git gpu: nova-core: remove imports available via prelude These imports are already in scope by importing `kernel::prelude::*` and does not need to be imported separately. Signed-off-by: Gary Guo Acked-by: Danilo Krummrich Link: https://patch.msgid.link/20260123172007.136873-2-gary@garyguo.net Signed-off-by: Miguel Ojeda --- diff --git a/drivers/gpu/nova-core/firmware/fwsec.rs b/drivers/gpu/nova-core/firmware/fwsec.rs index b28e34d279f46..dd2d1f0f24ed1 100644 --- a/drivers/gpu/nova-core/firmware/fwsec.rs +++ b/drivers/gpu/nova-core/firmware/fwsec.rs @@ -12,7 +12,6 @@ use core::{ marker::PhantomData, - mem::size_of, ops::Deref, // }; diff --git a/drivers/gpu/nova-core/firmware/gsp.rs b/drivers/gpu/nova-core/firmware/gsp.rs index 0549805282ab3..dc09e59cf4f50 100644 --- a/drivers/gpu/nova-core/firmware/gsp.rs +++ b/drivers/gpu/nova-core/firmware/gsp.rs @@ -1,7 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 -use core::mem::size_of_val; - use kernel::{ device, dma::{ @@ -34,11 +32,11 @@ use crate::{ /// that scheme before nova-core becomes stable, which means this module will eventually be /// removed. mod elf { - use core::mem::size_of; - - use kernel::bindings; - use kernel::str::CStr; - use kernel::transmute::FromBytes; + use kernel::{ + bindings, + prelude::*, + transmute::FromBytes, // + }; /// Newtype to provide a [`FromBytes`] implementation. #[repr(transparent)] diff --git a/drivers/gpu/nova-core/firmware/riscv.rs b/drivers/gpu/nova-core/firmware/riscv.rs index 28dfef63657a3..4bdd89bd07578 100644 --- a/drivers/gpu/nova-core/firmware/riscv.rs +++ b/drivers/gpu/nova-core/firmware/riscv.rs @@ -3,8 +3,6 @@ //! Support for firmware binaries designed to run on a RISC-V core. Such firmwares files have a //! dedicated header. -use core::mem::size_of; - use kernel::{ device, firmware::Firmware, diff --git a/drivers/gpu/nova-core/gsp/sequencer.rs b/drivers/gpu/nova-core/gsp/sequencer.rs index 2d0369c49092e..870f2da3327b3 100644 --- a/drivers/gpu/nova-core/gsp/sequencer.rs +++ b/drivers/gpu/nova-core/gsp/sequencer.rs @@ -2,13 +2,7 @@ //! GSP Sequencer implementation for Pre-hopper GSP boot sequence. -use core::{ - array, - mem::{ - size_of, - size_of_val, // - }, -}; +use core::array; use kernel::{ device, diff --git a/drivers/gpu/nova-core/sbuffer.rs b/drivers/gpu/nova-core/sbuffer.rs index 64758b7fae563..3a41d224c77ad 100644 --- a/drivers/gpu/nova-core/sbuffer.rs +++ b/drivers/gpu/nova-core/sbuffer.rs @@ -2,10 +2,7 @@ use core::ops::Deref; -use kernel::{ - alloc::KVec, - prelude::*, // -}; +use kernel::prelude::*; /// A buffer abstraction for discontiguous byte slices. ///