Rust ALLOC & DMA for v6.18
Danilo Krummrich
reviewerHi Miguel,
Please pull the following ALLOC & DMA changes.
All commits have been in linux-next for a couple of weeks. There are two trivial conflicts with the -mm and Linus' tree [1][2].
Some patches that would usually go through this tree went through the -mm tree [3][4]; [5] and [6] go through drm-rust together with their first user -- one minor import conflict in samples/rust/rust_dma.rs expected.
- Danilo
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/
[4] https://lore.kernel.org/all/d2e3d6454c1435713be0fe3c0dc444d2c60bba51.1753929369.git.zhuhui@kylinos.cn/
[5] https://lore.kernel.org/all/[email protected]/
[6] https://lore.kernel.org/all/[email protected]/
The following changes since commit 8f5ae30d69d7543eee0d70083daf4de8fe15d585:
Linux 6.17-rc1 (2025-08-10 19:41:16 +0300)
are available in the Git repository at:
https://github.com/Rust-for-Linux/linux.git tags/alloc-next-v6.18-2025-09-04
for you to fetch changes up to fe927defbb4f31c15a52f0372d7f5d608f161086:
rust: alloc: remove allocator_test (2025-08-24 15:30:40 +0200)
----------------------------------------------------------------
Alloc & DMA changes for v6.18
Allocator:
- Provide information about the minimum alignment guarantees of Kmalloc, Vmalloc and KVmalloc.
- Take minimum alignment guarantees of allocators for ForeignOwnable into account.
- Remove the allocator_test incl. Cmalloc.
Box:
- Implement Box::pin_slice(), which constructs a pinned slice of elements.
Vec:
- Simplify KUnit test module name to "rust_kvec".
- Add doc-test for Vec::as_slice().
- Constify various methods.
DMA:
- Update ARef and AlwaysRefCounted imports.
MISC:
- Remove support for unused host #[test]s.
- Constify ArrayLayout::new_unchecked().
----------------------------------------------------------------
Alice Ryhl (3):
rust: alloc: specify the minimum alignment of each allocator
rust: alloc: take the allocator into account for FOREIGN_ALIGN
rust: alloc: implement Box::pin_slice()
Danilo Krummrich (1):
rust: alloc: add ARCH_KMALLOC_MINALIGN to bindgen blocklist
Hui Zhu (2):
rust: alloc: kvec: add doc example for as_slice method
rust: alloc: kvec: simplify KUnit test module name to "rust_kvec"
Miguel Ojeda (2):
rust: kernel: remove support for unused host #[test]s
rust: alloc: remove allocator_test
Onur Özkan (2):
rust: make ArrayLayout::new_unchecked a const fn
rust: make kvec::Vec functions const fn
Shankari Anand (1):
rust: dma: Update ARef and AlwaysRefCounted imports from sync::aref
rust/Makefile | 9 +-------- rust/bindgen_parameters | 1 + rust/bindings/bindings_helper.h | 1 + rust/kernel/alloc.rs | 15 ++++++++------- rust/kernel/alloc/allocator.rs | 8 ++++++++ rust/kernel/alloc/allocator_test.rs | 113 ----------------------------------------------------------------------------------------------------------------- rust/kernel/alloc/kbox.rs | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- rust/kernel/alloc/kvec.rs | 22 ++++++++++++++++------ rust/kernel/alloc/layout.rs | 2 +- rust/kernel/dma.rs | 2 +- rust/kernel/error.rs | 4 ++-- rust/kernel/lib.rs | 2 +- rust/kernel/sync/arc.rs | 6 +++--- samples/rust/rust_dma.rs | 2 +- 14 files changed, 130 insertions(+), 147 deletions(-) delete mode 100644 rust/kernel/alloc/allocator_test.rs
Miguel Ojeda
AppliedQuoted 2 lines · Danilo Krummrich
Please pull the following ALLOC & DMA changes.
Merged into rust-next -- thanks for the summary and sending it early!
Cheers,
Miguel