linux-yocto/rust
Lyude Paul 38cb08c3fc rust: drm: gem: Implement AlwaysRefCounted for all gem objects automatically
Currently we are requiring AlwaysRefCounted in most trait bounds for gem
objects, and implementing it by hand for our only current type of gem
object. However, all gem objects use the same functions for reference
counting - and all gem objects support reference counting.

We're planning on adding support for shmem gem objects, let's move this
around a bit by instead making IntoGEMObject require AlwaysRefCounted as a
trait bound, and then provide a blanket AlwaysRefCounted implementation for
any object that implements IntoGEMObject so all gem object types can use
the same AlwaysRefCounted implementation. This also makes things less
verbose by making the AlwaysRefCounted trait bound implicit for any
IntoGEMObject bound.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://lore.kernel.org/r/20250513221046.903358-5-lyude@redhat.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2025-05-14 00:37:16 +02:00
..
bindings rust: drm: gem: Add GEM object abstraction 2025-04-28 10:08:23 +02:00
helpers rust: drm: gem: Add GEM object abstraction 2025-04-28 10:08:23 +02:00
kernel rust: drm: gem: Implement AlwaysRefCounted for all gem objects automatically 2025-05-14 00:37:16 +02:00
macros Rust changes for v6.15 2025-03-30 17:03:26 -07:00
pin-init Rust changes for v6.15 2025-03-30 17:03:26 -07:00
uapi drm: nova-drm: add initial driver skeleton 2025-05-12 20:48:15 +02:00
.gitignore
.kunitconfig rust: add kunitconfig 2025-03-19 23:22:21 +01:00
bindgen_parameters
build_error.rs
compiler_builtins.rs ARM: 9441/1: rust: Enable Rust support for ARMv7 2025-03-26 13:31:16 +00:00
exports.c
ffi.rs rust: map long to isize and char to u8 2024-12-16 21:49:33 +01:00
Makefile Kbuild updates for v6.15 2025-04-05 15:46:50 -07:00