lkml.org 
[lkml]   [2024]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 10/10] rust: kernel: remove usage of `allocator_api` unstable feature
On 27.03.24 03:35, Wedson Almeida Filho wrote:
> From: Wedson Almeida Filho <walmeida@microsoft.com>
>
> With the adoption of `BoxExt` and `VecExt`, we don't need the functions
> provided by this feature (namely the methods prefixed with `try_` and
> different allocator per collection instance).
>
> We do need `AllocError`, but we define our own as it is a trivial empty
> struct.
>
> Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
> ---
> rust/kernel/alloc.rs | 4 ++++
> rust/kernel/alloc/box_ext.rs | 3 +--
> rust/kernel/alloc/vec_ext.rs | 4 ++--
> rust/kernel/error.rs | 4 ++--
> rust/kernel/init.rs | 3 +--
> rust/kernel/lib.rs | 1 -
> rust/kernel/str.rs | 3 +--
> rust/kernel/sync/arc.rs | 4 ++--
> rust/kernel/workqueue.rs | 3 +--
> 9 files changed, 14 insertions(+), 15 deletions(-)

Reviewed-by: Benno Lossin <benno.lossin@proton.me>

--
Cheers,
Benno


\
 
 \ /
  Last update: 2024-05-27 16:12    [W:0.087 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site