Skip to content

rust: make various `alloc` functions `const fn`

Onur Özkan lkml rust-for-linux 1 version Applied

Status from this message: Applied to alloc-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3rust: make `allocator::aligned_size` a `const fn`rust/kernel/alloc/allocator.rs+1 -11 reply
2/3rust: make `ArrayLayout::new_unchecked` a `const fn`rust/kernel/alloc/layout.rs+1 -10 replies
3/3rust: make `kvec::Vec` functions `const fn`rust/kernel/alloc/kvec.rs+5 -50 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBenno LossinAlice Ryhl
SeriesR-b R-b
1/3
2/3
3/3

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 v1 0/3] rust: make various `alloc` functions `const fn`

This patch series makes various functions in the
alloc crate const fn.

Each patch corresponds to a different module within the same alloc crate.

Onur Özkan (3):
rust: make allocator::aligned_size a const fn
rust: make ArrayLayout::new_unchecked a const fn
rust: make kvec::Vec functions const fn

 rust/kernel/alloc/allocator.rs |  2 +-
 rust/kernel/alloc/kvec.rs      | 10 +++++-----
 rust/kernel/alloc/layout.rs    |  2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

--
2.50.0