Merge tag 'alloc-next-v6.17-2025-07-15' of https://github.com/Rust-for-Linux/linux...
authorMiguel Ojeda <ojeda@kernel.org>
Tue, 15 Jul 2025 21:42:55 +0000 (23:42 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 15 Jul 2025 21:42:55 +0000 (23:42 +0200)
commit8ecb65b7b68ea48350833ba59c1257718e859768
tree272d420304019cdb4998b970663608c8d7bf1f01
parent7c098cd5eaae557934f4e4ea0b2809a9972f6a5a
parentd49ac7744f578bcc8708a845cce24d3b91f86260
Merge tag 'alloc-next-v6.17-2025-07-15' of https://github.com/Rust-for-Linux/linux into rust-next

Pull alloc and DMA updates from Danilo Krummrich:

  Box:
   - Implement Borrow / BorrowMut for Box<T, A>.

  Vec:
   - Implement Default for Vec<T, A>.

   - Implement Borrow / BorrowMut for Vec<T, A>.

  DMA:
   - Clarify wording and be consistent in 'coherent' nomenclature.

   - Convert the read!() / write!() macros to return a Result.

   - Add as_slice() / write() methods in CoherentAllocation.

   - Fix doc-comment of dma_handle().

   - Expose count() and size() in CoherentAllocation and add the
     corresponding type invariants.

   - Implement CoherentAllocation::dma_handle_with_offset().

   - Require mutable reference for as_slice_mut() and write().

  MAINTAINERS:
   - Add Vlastimil Babka, Liam R. Howlett, Uladzislau Rezki and Lorenzo
     Stoakes as reviewers (thanks everyone).

* tag 'alloc-next-v6.17-2025-07-15' of https://github.com/Rust-for-Linux/linux:
  MAINTAINERS: add mm folks as reviewers to rust alloc
  rust: dma: require mutable reference for as_slice_mut() and write()
  rust: dma: add dma_handle_with_offset method to CoherentAllocation
  rust: dma: expose the count and size of CoherentAllocation
  rust: dma: fix doc-comment of dma_handle()
  rust: dma: add as_slice/write functions for CoherentAllocation
  rust: dma: convert the read/write macros to return Result
  rust: dma: clarify wording and be consistent in `coherent` nomenclature
  rust: alloc: implement `Borrow` and `BorrowMut` for `KBox`
  rust: alloc: implement `Borrow` and `BorrowMut` for `Vec`
  rust: vec: impl Default for Vec with any allocator
MAINTAINERS
rust/kernel/alloc/kbox.rs
rust/kernel/alloc/kvec.rs
rust/kernel/dma.rs