Skip to content

Alloc and drm::Device fixes

Danilo Krummrich dri-devel lkml rust-for-linux 1 version Applied

Status from this message: Applied to drm-misc-fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 17 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4rust: alloc: replace aligned_size() with Kmalloc::aligned_layout()rust/kernel/alloc/allocator.rs+18 -127 replies
2/4rust: drm: ensure kmalloc() compatible Layoutrust/kernel/drm/device.rs+7 -24 replies
3/4rust: drm: remove pin annotations from drm::Devicerust/kernel/drm/device.rs+0 -24 replies
4/4rust: drm: don't pass the address of drm::Device to drm_dev_put()rust/kernel/drm/device.rs+18 -31 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAlice RyhlBenno Lossin
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Alloc and drm::Device fixes

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

Signature · 1 line
2.50.0