From: Miguel Ojeda Date: Sat, 16 Aug 2025 21:02:14 +0000 (+0200) Subject: rust: alloc: fix missing import needed for `rusttest` X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5907ae1833bf681fd1730d659f1c08975eb77bd3;p=users%2Fjedix%2Flinux-maple.git rust: alloc: fix missing import needed for `rusttest` 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. Link: https://lkml.kernel.org/r/20250816210214.2729269-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda Cc: Alice Ryhl Cc: Danilo Krummrich Cc: Herbert Xu Cc: Jann Horn Cc: Kent Overstreet Cc: Liam Howlett Cc: Lorenzo Stoakes Cc: Uladzislau Rezki (Sony) Cc: Vitaly Wool Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- diff --git a/rust/kernel/alloc/allocator_test.rs b/rust/kernel/alloc/allocator_test.rs index 7c8b1dbe2dba..2e61cdbd2303 100644 --- a/rust/kernel/alloc/allocator_test.rs +++ b/rust/kernel/alloc/allocator_test.rs @@ -9,7 +9,7 @@ #![allow(missing_docs)] -use super::{flags::*, AllocError, Allocator, Flags}; +use super::{flags::*, AllocError, Allocator, Flags, NumaNode}; use core::alloc::Layout; use core::cmp; use core::ptr;