]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: make `kvec::Vec` functions `const fn`
authorOnur Özkan <work@onurozkan.dev>
Sun, 20 Jul 2025 09:48:38 +0000 (12:48 +0300)
committerDanilo Krummrich <dakr@kernel.org>
Fri, 15 Aug 2025 17:58:51 +0000 (19:58 +0200)
commitf87de6919dc126f22c7b5bf92e378f0346f190a8
tree98435aea654d10293448f2bad8dc64d156770f16
parent8d3e8057eeadab134a71d6a495d6f1b6818144fe
rust: make `kvec::Vec` functions `const fn`

Makes various `kvec::Vec` functions `const fn`
to allow compile-time evaluation.

Signed-off-by: Onur Özkan <work@onurozkan.dev>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Link: https://lore.kernel.org/r/20250720094838.29530-4-work@onurozkan.dev
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/alloc/kvec.rs