[PATCH 0/4] Alloc and drm::Device fixes
From: Danilo Krummrich
Date: Thu Jul 31 2025 - 11:49:42 EST
This patch series replaces aligned_size() with Kmalloc::aligned_layout(), which
is subsequently used to obtain a kmalloc() compatible Layout for
__drm_dev_alloc() in drm::Device::new().
It also contains two additional drm::Device fixes; the commits are based on
next-20250731.
Danilo Krummrich (4):
rust: alloc: replace aligned_size() with Kmalloc::aligned_layout()
rust: drm: ensure kmalloc() compatible Layout
rust: drm: remove pin annotations from drm::Device
rust: drm: don't pass the address of drm::Device to drm_dev_put()
rust/kernel/alloc/allocator.rs | 30 ++++++++++++++++++------------
rust/kernel/drm/device.rs | 32 +++++++++++++++++++++++++-------
2 files changed, 43 insertions(+), 19 deletions(-)
base-commit: 84b92a499e7eca54ba1df6f6c6e01766025943f1
--
2.50.0