mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
8db31d3f3b
commit
31d94d8f58
3 changed files with 8 additions and 3 deletions
7
rust/kernel/alloc.rs
Normal file
7
rust/kernel/alloc.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
//! Extensions to the [`alloc`] crate.
|
||||
|
||||
#[cfg(not(test))]
|
||||
#[cfg(not(testlib))]
|
||||
mod allocator;
|
|
@ -27,9 +27,7 @@
|
|||
// Allow proc-macros to refer to `::kernel` inside the `kernel` crate (this crate).
|
||||
extern crate self as kernel;
|
||||
|
||||
#[cfg(not(test))]
|
||||
#[cfg(not(testlib))]
|
||||
mod allocator;
|
||||
pub mod alloc;
|
||||
mod build_assert;
|
||||
pub mod error;
|
||||
pub mod init;
|
||||
|
|
Loading…
Reference in a new issue