Re: [PATCH] rust: alloc: fix missing import needed for `rusttest`
From: Alice Ryhl
Date: Sun Aug 17 2025 - 04:33:19 EST
On Sat, Aug 16, 2025 at 11:02 PM Miguel Ojeda <ojeda@xxxxxxxxxx> wrote:
>
> There is a missing import of `NumaNode` that is used in the `rusttest`
> target:
>
> error[E0412]: cannot find type `NumaNode` in this scope
> --> rust/kernel/alloc/allocator_test.rs:43:15
> |
> 43 | _nid: NumaNode,
> | ^^^^^^^^ not found in this scope
> |
> help: consider importing this struct
> |
> 12 + use crate::alloc::NumaNode;
> |
>
> Thus fix it by adding it.
>
> Fixes: 8405eafa6e94 ("rust: add support for NUMA ids in allocations")
> Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
Acked-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>