summaryrefslogtreecommitdiffstats
path: root/rust/kernel/alloc.rs
diff options
context:
space:
mode:
authorWedson Almeida Filho <walmeida@microsoft.com>2024-03-28 02:35:54 +0100
committerMiguel Ojeda <ojeda@kernel.org>2024-04-16 22:03:14 +0200
commit31d94d8f586df55e7dce47a67a8428f46d09f906 (patch)
tree1025540564227f4611a60303381a433e6076d390 /rust/kernel/alloc.rs
parentrust: workqueue: add `#[pin_data]` to `Work` (diff)
downloadlinux-31d94d8f586df55e7dce47a67a8428f46d09f906.tar.xz
linux-31d94d8f586df55e7dce47a67a8428f46d09f906.zip
rust: kernel: move `allocator` module under `alloc`
We will add more to the `alloc` module in subsequent patches (e.g., allocation flags and extension traits). Reviewed-by: Benno Lossin <benno.lossin@proton.me> Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20240328013603.206764-2-wedsonaf@gmail.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/alloc.rs')
-rw-r--r--rust/kernel/alloc.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/rust/kernel/alloc.rs b/rust/kernel/alloc.rs
new file mode 100644
index 000000000000..9aa5077d4a4c
--- /dev/null
+++ b/rust/kernel/alloc.rs
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
+
+//! Extensions to the [`alloc`] crate.
+
+#[cfg(not(test))]
+#[cfg(not(testlib))]
+mod allocator;