* [PATCH 1/2] gpu: nova-core: remove imports available from prelude
@ 2026-06-10 13:57 Gary Guo
2026-06-10 13:57 ` [PATCH 2/2] gpu: nova-core: use `c"literal"` instead of `c_str!()` Gary Guo
0 siblings, 1 reply; 3+ messages in thread
From: Gary Guo @ 2026-06-10 13:57 UTC (permalink / raw)
To: Danilo Krummrich, Alexandre Courbot, Alice Ryhl, David Airlie,
Simona Vetter
Cc: Gary Guo, nova-gpu, dri-devel, linux-kernel
From: Gary Guo <gary@garyguo.net>
No functional changes intended.
Signed-off-by: Gary Guo <gary@garyguo.net>
---
drivers/gpu/nova-core/firmware.rs | 4 +---
drivers/gpu/nova-core/firmware/fwsec/bootloader.rs | 1 -
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/gpu/nova-core/firmware.rs b/drivers/gpu/nova-core/firmware.rs
index 366d3b76360e..f74e0f16c65c 100644
--- a/drivers/gpu/nova-core/firmware.rs
+++ b/drivers/gpu/nova-core/firmware.rs
@@ -467,11 +467,9 @@ pub(crate) const fn create(
/// 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,
- str::CStr,
+ prelude::*,
transmute::FromBytes, //
};
diff --git a/drivers/gpu/nova-core/firmware/fwsec/bootloader.rs b/drivers/gpu/nova-core/firmware/fwsec/bootloader.rs
index 039920dc340b..ac1558a83b83 100644
--- a/drivers/gpu/nova-core/firmware/fwsec/bootloader.rs
+++ b/drivers/gpu/nova-core/firmware/fwsec/bootloader.rs
@@ -7,7 +7,6 @@
//! be loaded using PIO.
use kernel::{
- alloc::KVec,
device::{
self,
Device, //
base-commit: 58f0f62778faf667bdaf1fa7db59e89847213646
--
2.54.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] gpu: nova-core: use `c"literal"` instead of `c_str!()`
2026-06-10 13:57 [PATCH 1/2] gpu: nova-core: remove imports available from prelude Gary Guo
@ 2026-06-10 13:57 ` Gary Guo
2026-06-10 15:28 ` Alexandre Courbot
0 siblings, 1 reply; 3+ messages in thread
From: Gary Guo @ 2026-06-10 13:57 UTC (permalink / raw)
To: Danilo Krummrich, Alexandre Courbot, Alice Ryhl, David Airlie,
Simona Vetter, Benno Lossin, Gary Guo
Cc: nova-gpu, dri-devel, linux-kernel, rust-for-linux
From: Gary Guo <gary@garyguo.net>
No functional changes intended.
Signed-off-by: Gary Guo <gary@garyguo.net>
---
drivers/gpu/nova-core/nova_core.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/nova-core/nova_core.rs b/drivers/gpu/nova-core/nova_core.rs
index 9f0199f7b38c..735b8e17c6b6 100644
--- a/drivers/gpu/nova-core/nova_core.rs
+++ b/drivers/gpu/nova-core/nova_core.rs
@@ -54,7 +54,7 @@ struct NovaCoreModule {
impl InPlaceModule for NovaCoreModule {
fn init(module: &'static kernel::ThisModule) -> impl PinInit<Self, Error> {
- let dir = debugfs::Dir::new(kernel::c_str!("nova-core"));
+ let dir = debugfs::Dir::new(c"nova-core");
// SAFETY: We are the only driver code running during init, so there
// cannot be any concurrent access to `DEBUGFS_ROOT`.
--
2.54.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] gpu: nova-core: use `c"literal"` instead of `c_str!()`
2026-06-10 13:57 ` [PATCH 2/2] gpu: nova-core: use `c"literal"` instead of `c_str!()` Gary Guo
@ 2026-06-10 15:28 ` Alexandre Courbot
0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Courbot @ 2026-06-10 15:28 UTC (permalink / raw)
To: Gary Guo
Cc: Gary Guo, Danilo Krummrich, Alice Ryhl, David Airlie,
Simona Vetter, Benno Lossin, nova-gpu, dri-devel, linux-kernel,
rust-for-linux
On Wed Jun 10, 2026 at 10:57 PM JST, Gary Guo wrote:
> From: Gary Guo <gary@garyguo.net>
>
> No functional changes intended.
>
> Signed-off-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-06-10 15:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-10 13:57 [PATCH 1/2] gpu: nova-core: remove imports available from prelude Gary Guo
2026-06-10 13:57 ` [PATCH 2/2] gpu: nova-core: use `c"literal"` instead of `c_str!()` Gary Guo
2026-06-10 15:28 ` Alexandre Courbot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.