Re: [PATCH v14 4/4] rust: support large alignments in allocations

From: Danilo Krummrich
Date: Wed Jul 30 2025 - 16:19:14 EST


On Wed Jul 30, 2025 at 9:21 PM CEST, Vitaly Wool wrote:
> diff --git a/rust/kernel/alloc/allocator_test.rs b/rust/kernel/alloc/allocator_test.rs
> index d19c06ef0498..17b27c6e9e37 100644
> --- a/rust/kernel/alloc/allocator_test.rs
> +++ b/rust/kernel/alloc/allocator_test.rs
> @@ -40,6 +40,7 @@ unsafe fn realloc(
> layout: Layout,
> old_layout: Layout,
> flags: Flags,
> + nid: NumaNode,
> ) -> Result<NonNull<[u8]>, AllocError> {
> let src = match ptr {
> Some(src) => {

I think this hunk should be on patch 3.

Also, don't you see a warning when running the rusttest target? I think it has
to be _nid, given that the argument is unused.