rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] rust: drm: gem: More (and final) cleanup
@ 2025-05-20 18:19 Lyude Paul
  2025-05-20 18:19 ` [PATCH v3 1/4] rust: drm: gem: Simplify use of generics Lyude Paul
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Lyude Paul @ 2025-05-20 18:19 UTC (permalink / raw)
  To: dri-devel, linux-kernel, rust-for-linux
  Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, Danilo Krummrich

Look mom, no generic soup!

Anyway - this is just the last of the cleanup stuff I ended up while
working on cleaning up the gem shmem patch series. It simplifies the use
of generics and also adds a type alias for some very long types
currently in use. Also, drop one unused constant I noticed.

Applies on top of nova/nova-next:
  https://gitlab.freedesktop.org/drm/nova/-/tree/nova-next

Lyude Paul (4):
  rust: drm: gem: Simplify use of generics
  rust: drm: gem: Add DriverFile type alias
  rust: drm: gem: Drop Object::SIZE
  rust: drm: Use gem::BaseDriverObject in driver::Driver

 drivers/gpu/drm/nova/driver.rs |   4 +-
 drivers/gpu/drm/nova/gem.rs    |   9 ++-
 rust/kernel/drm/device.rs      |  17 +++---
 rust/kernel/drm/driver.rs      |   5 +-
 rust/kernel/drm/gem/mod.rs     | 108 +++++++++++++++------------------
 5 files changed, 70 insertions(+), 73 deletions(-)


base-commit: 276c53c66e032c8e7cc0da63555f2742eb1afd69
-- 
2.49.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-05-20 18:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20 18:19 [PATCH v3 0/4] rust: drm: gem: More (and final) cleanup Lyude Paul
2025-05-20 18:19 ` [PATCH v3 1/4] rust: drm: gem: Simplify use of generics Lyude Paul
2025-05-20 18:19 ` [PATCH v3 2/4] rust: drm: gem: Add DriverFile type alias Lyude Paul
2025-05-20 18:19 ` [PATCH v3 3/4] rust: drm: gem: Drop Object::SIZE Lyude Paul
2025-05-20 18:19 ` [PATCH v3 4/4] rust: drm: Use gem::BaseDriverObject in driver::Driver Lyude Paul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).