From: Danilo Krummrich Date: Fri, 7 Mar 2025 22:49:31 +0000 (+0100) Subject: rust: alloc: make `allocator` module public X-Git-Tag: v6.12.19~236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=594134eb9cb57a2fff4911a508dab1fa2e8a6d53;p=thirdparty%2Fkernel%2Fstable.git rust: alloc: make `allocator` module public commit a87a36f0bf517dae22f3e3790b05c979070f776a upstream. Subsequent patches implement allocators such as `Kmalloc`, `Vmalloc`, `KVmalloc`; we need them to be available outside of the kernel crate as well. Reviewed-by: Benno Lossin Reviewed-by: Gary Guo Signed-off-by: Danilo Krummrich Link: https://lore.kernel.org/r/20241004154149.93856-6-dakr@kernel.org Signed-off-by: Miguel Ojeda Signed-off-by: Greg Kroah-Hartman --- diff --git a/rust/kernel/alloc.rs b/rust/kernel/alloc.rs index 95d402feb6ffd..2203852c37121 100644 --- a/rust/kernel/alloc.rs +++ b/rust/kernel/alloc.rs @@ -4,7 +4,7 @@ #[cfg(not(test))] #[cfg(not(testlib))] -mod allocator; +pub mod allocator; pub mod box_ext; pub mod vec_ext;