* [PATCH V2 0/1] Rust DRM build fix
@ 2026-04-26 9:47 Mukesh Kumar Chaurasiya (IBM)
2026-04-26 9:47 ` [PATCH V2 1/1] rust/drm: import ARef from sync crate Mukesh Kumar Chaurasiya (IBM)
0 siblings, 1 reply; 2+ messages in thread
From: Mukesh Kumar Chaurasiya (IBM) @ 2026-04-26 9:47 UTC (permalink / raw)
To: dakr, aliceryhl, airlied, simona, ojeda, boqun, gary, bjorn3_gh,
lossin, a.hindborg, tmgross, daniel.almeida, lina+kernel, lyude,
j, mkchauras, dri-devel, rust-for-linux, linux-kernel
rust drm gem shmem doesn't builds due to an import error of ARef from
types instead of sync.
Changelog:
V1 -> V2:
- Removed the 2nd patch as it was by design
- Removed unnecessary braces around the Opaque mod
- Minor change in commit message
V1: https://lore.kernel.org/all/20260426082234.2026908-1-mkchauras@gmail.com/
Mukesh Kumar Chaurasiya (IBM) (1):
rust/drm: import ARef from sync crate
rust/kernel/drm/gem/shmem.rs | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
--
2.53.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH V2 1/1] rust/drm: import ARef from sync crate
2026-04-26 9:47 [PATCH V2 0/1] Rust DRM build fix Mukesh Kumar Chaurasiya (IBM)
@ 2026-04-26 9:47 ` Mukesh Kumar Chaurasiya (IBM)
0 siblings, 0 replies; 2+ messages in thread
From: Mukesh Kumar Chaurasiya (IBM) @ 2026-04-26 9:47 UTC (permalink / raw)
To: dakr, aliceryhl, airlied, simona, ojeda, boqun, gary, bjorn3_gh,
lossin, a.hindborg, tmgross, daniel.almeida, lina+kernel, lyude,
j, mkchauras, dri-devel, rust-for-linux, linux-kernel
ARef is defined in sync and is getting used from types causing the
build to fail.
Fix this by using ARef from sync module.
Signed-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>
---
rust/kernel/drm/gem/shmem.rs | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/rust/kernel/drm/gem/shmem.rs b/rust/kernel/drm/gem/shmem.rs
index d025fb035195..e1b648920d2f 100644
--- a/rust/kernel/drm/gem/shmem.rs
+++ b/rust/kernel/drm/gem/shmem.rs
@@ -19,10 +19,8 @@
},
error::to_result,
prelude::*,
- types::{
- ARef,
- Opaque, //
- }, //
+ sync::aref::ARef,
+ types::Opaque, //
};
use core::{
ops::{
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-26 9:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-26 9:47 [PATCH V2 0/1] Rust DRM build fix Mukesh Kumar Chaurasiya (IBM)
2026-04-26 9:47 ` [PATCH V2 1/1] rust/drm: import ARef from sync crate Mukesh Kumar Chaurasiya (IBM)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox