[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <498e0141-8df5-46a7-b891-e1cb754f49e2@proton.me>
Date: Wed, 07 Aug 2024 21:23:04 +0000
From: Benno Lossin <benno.lossin@...ton.me>
To: Danilo Krummrich <dakr@...nel.org>, ojeda@...nel.org, alex.gaynor@...il.com, wedsonaf@...il.com, boqun.feng@...il.com, gary@...yguo.net, bjorn3_gh@...tonmail.com, a.hindborg@...sung.com, aliceryhl@...gle.com, akpm@...ux-foundation.org
Cc: daniel.almeida@...labora.com, faith.ekstrand@...labora.com, boris.brezillon@...labora.com, lina@...hilina.net, mcanal@...lia.com, zhiw@...dia.com, acurrid@...dia.com, cjia@...dia.com, jhubbard@...dia.com, airlied@...hat.com, ajanulgu@...hat.com, lyude@...hat.com, linux-kernel@...r.kernel.org, rust-for-linux@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH v4 21/28] rust: alloc: remove `GlobalAlloc` and `krealloc_aligned`
On 05.08.24 17:19, Danilo Krummrich wrote:
> Now that we have all the `Allocator`s and the kernel `Box` and `Vec`
> implementations in place, remove `GlobalAlloc` and `krealloc_aligned`.
When I try to compile this patch, then I get this error:
UPD include/generated/utsversion.h
CC init/version-timestamp.o
KSYMS .tmp_vmlinux0.kallsyms.S
AS .tmp_vmlinux0.kallsyms.o
LD .tmp_vmlinux1
ld.lld: error: undefined symbol: __rust_realloc
>>> referenced by usercopy_64.c
>>> vmlinux.o:(alloc::raw_vec::finish_grow::<alloc::alloc::Global>)
ld.lld: error: undefined symbol: __rust_alloc
>>> referenced by usercopy_64.c
>>> vmlinux.o:(alloc::raw_vec::finish_grow::<alloc::alloc::Global>)
make[2]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
So maybe the `#[global_allocator]` needs to stay until we remove the
`alloc` dependency?
---
Cheers,
Benno
> Signed-off-by: Danilo Krummrich <dakr@...nel.org>
> ---
> rust/kernel/alloc/allocator.rs | 63 ++--------------------------------
> 1 file changed, 2 insertions(+), 61 deletions(-)
Powered by blists - more mailing lists