From: Danilo Krummrich Date: Fri, 7 Mar 2025 22:49:48 +0000 (+0100) Subject: rust: error: use `core::alloc::LayoutError` X-Git-Tag: v6.12.19~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c330479d71822a0e3014da8a3fb5373a882207a;p=thirdparty%2Fkernel%2Fstable.git rust: error: use `core::alloc::LayoutError` commit 29a48d25ff53c183482dc88a99133a0fb5aa541a upstream. Use `core::alloc::LayoutError` instead of `alloc::alloc::LayoutError` in preparation to get rid of Rust's alloc crate. Reviewed-by: Alice Ryhl Reviewed-by: Benno Lossin Reviewed-by: Gary Guo Signed-off-by: Danilo Krummrich Link: https://lore.kernel.org/r/20241004154149.93856-23-dakr@kernel.org Signed-off-by: Miguel Ojeda Signed-off-by: Greg Kroah-Hartman --- diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs index be6509d5f4a4a..aced2fe68b86b 100644 --- a/rust/kernel/error.rs +++ b/rust/kernel/error.rs @@ -6,7 +6,7 @@ use crate::{alloc::AllocError, str::CStr}; -use alloc::alloc::LayoutError; +use core::alloc::LayoutError; use core::fmt; use core::num::NonZeroI32;