]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: alloc: make `allocator` module public
authorDanilo Krummrich <dakr@kernel.org>
Fri, 4 Oct 2024 15:41:09 +0000 (17:41 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 15 Oct 2024 20:56:59 +0000 (22:56 +0200)
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 <benno.lossin@proton.me>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20241004154149.93856-6-dakr@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/alloc.rs

index 95d402feb6ffd919ce9721a376b5eb49e08e6226..2203852c37121be071ed31c389e31b01028ecfff 100644 (file)
@@ -4,7 +4,7 @@
 
 #[cfg(not(test))]
 #[cfg(not(testlib))]
-mod allocator;
+pub mod allocator;
 pub mod box_ext;
 pub mod vec_ext;