-
- Downloads
kbuild: rust: remove the `alloc` crate and `GlobalAlloc`
Now that we have our own `Allocator`, `Box` and `Vec` types we can remove Rust's `alloc` crate and the `new_uninit` unstable feature. Also remove `Kmalloc`'s `GlobalAlloc` implementation -- we can't remove this in a separate patch, since the `alloc` crate requires a `#[global_allocator]` to set, that implements `GlobalAlloc`. Signed-off-by:Danilo Krummrich <dakr@kernel.org> Link: https://lore.kernel.org/r/20241004154149.93856-29-dakr@kernel.org Signed-off-by:
Miguel Ojeda <ojeda@kernel.org>
Showing
- rust/Makefile 10 additions, 33 deletionsrust/Makefile
- rust/exports.c 0 additions, 1 deletionrust/exports.c
- rust/kernel/alloc/allocator.rs 2 additions, 63 deletionsrust/kernel/alloc/allocator.rs
- scripts/Makefile.build 2 additions, 2 deletionsscripts/Makefile.build
- scripts/generate_rust_analyzer.py 2 additions, 9 deletionsscripts/generate_rust_analyzer.py
Loading
Please register or sign in to comment