Message ID | 20240805152004.5039-23-dakr@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A10CFC3DA4A for <linux-mm@archiver.kernel.org>; Mon, 5 Aug 2024 15:22:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 270A18D0005; Mon, 5 Aug 2024 11:22:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 220FC8D0001; Mon, 5 Aug 2024 11:22:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0C0FC8D0005; Mon, 5 Aug 2024 11:22:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id E3CEC8D0001 for <linux-mm@kvack.org>; Mon, 5 Aug 2024 11:22:18 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id B01D0160359 for <linux-mm@kvack.org>; Mon, 5 Aug 2024 15:22:18 +0000 (UTC) X-FDA: 82418557956.27.ADE6117 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf30.hostedemail.com (Postfix) with ESMTP id E6A078001F for <linux-mm@kvack.org>; Mon, 5 Aug 2024 15:22:16 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fLVr7YbN; spf=pass (imf30.hostedemail.com: domain of dakr@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=dakr@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722871275; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=JiNiq3w86fsb6pYyZWDbsYIgV8yRol5xnlA84a758XE=; b=H9OZQ5xsOD9gubXXkQQXhoCX68XVgwSAneS1UQY5TB06HACXZn8tSA9wS0GcO5VIi4DDl9 7oUiVqYRq0UNCHBZbEIK/M+fnPIccYchdna5BR4T/sTTQoXEnwYx1NCTZcJvhjElhYBQPK GNsGtu7VfslGx1jeNiXXESfyCty+RHU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722871275; a=rsa-sha256; cv=none; b=kXBKmLqjhhmoGHj0mHDTHUzc9GwkwbB/xjrEokDuOUAZBntPxLSZ/VEc1NZHlQDtOInebB SO0BN+u6ddeqwdaTrrD5VaLGEkFozimYS3QBH8gCAPPTzGetzJT5AVHbJK1GZnJH5HEVUh DR7CBORt0lV0W/wqb7jtXJvhSOofUlw= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fLVr7YbN; spf=pass (imf30.hostedemail.com: domain of dakr@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=dakr@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 1AA0060CF5; Mon, 5 Aug 2024 15:22:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8DDCC32782; Mon, 5 Aug 2024 15:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722871335; bh=ifLa6ui520OxD4tx6GpOL1mZtUOCjuqJJxFCxi3qo5o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fLVr7YbN264rVMq6UBxDkj9mLkDKu+lSnJRLG7ZDHjikHSZtClMvS0zahZgkPnYnC 8g//sl6JDeyuCBMEHtPPyasEONse+pNBUhjzv+LJcoYMBSaH/8Dz2uwMj08S1/d687 gpXy+kODqrOIBDERW7L+MmgNouc+BgymUOc1ddUgOKnaNmndK6eQWQCy5IrEvrpGOf MAzoF3+bKOWT4uc1/CUC04cf119BepvY7K7jvxanIMQeDHIXUYk/iG+0TVUqUCE4mP fXvjpu/uQPXoBJeF6GCTy4zLnn3y7+EvbMgnsFG8kA4WfqgKwTg1ujG6yKE4SKvFZw kwgaUYAhHVjuw== From: Danilo Krummrich <dakr@kernel.org> To: ojeda@kernel.org, alex.gaynor@gmail.com, wedsonaf@gmail.com, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, benno.lossin@proton.me, a.hindborg@samsung.com, aliceryhl@google.com, akpm@linux-foundation.org Cc: daniel.almeida@collabora.com, faith.ekstrand@collabora.com, boris.brezillon@collabora.com, lina@asahilina.net, mcanal@igalia.com, zhiw@nvidia.com, acurrid@nvidia.com, cjia@nvidia.com, jhubbard@nvidia.com, airlied@redhat.com, ajanulgu@redhat.com, lyude@redhat.com, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-mm@kvack.org, Danilo Krummrich <dakr@kernel.org> Subject: [PATCH v4 22/28] rust: error: use `core::alloc::LayoutError` Date: Mon, 5 Aug 2024 17:19:41 +0200 Message-ID: <20240805152004.5039-23-dakr@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240805152004.5039-1-dakr@kernel.org> References: <20240805152004.5039-1-dakr@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: cpsfwbfwjf3puep9wmq3dackhpkx3ceg X-Rspamd-Queue-Id: E6A078001F X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1722871336-623684 X-HE-Meta: U2FsdGVkX1/LCUOhR1WvnARzcxUpIPr9Mz6cSBck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z2cW8P/SsnAI/8/q+3QuvVRbC49ZlxzJW4v7JtcF6pIZ0eNtS4hBP8cYtTAP25S8S1kYm9+QGYUMy8BDBcpnVcCq6wG9DiBkFGSTgXDCzPibvKbH8mAxf0fVFv3jIu9O2lZ785J885ILl6HMQxiAl9r3V2CaM4hqZuHNTLllfwNY7OOLWoN1rA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.001449, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Generic `Allocator` support for Rust
|
expand
|
diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs index 145f5c397009..2d012cc3881a 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::TryFromIntError;
Use `core::alloc::LayoutError` instead of `alloc::alloc::LayoutError` in preparation to get rid of Rust's alloc crate. Signed-off-by: Danilo Krummrich <dakr@kernel.org> --- rust/kernel/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)