Message ID | 20240801000641.1882-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 DB60DC3DA64 for <linux-mm@archiver.kernel.org>; Thu, 1 Aug 2024 00:08:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 63FC56B00BC; Wed, 31 Jul 2024 20:08:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5ECF86B00BE; Wed, 31 Jul 2024 20:08:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 468776B00BF; Wed, 31 Jul 2024 20:08:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 245226B00BC for <linux-mm@kvack.org>; Wed, 31 Jul 2024 20:08:56 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id E03C81605F1 for <linux-mm@kvack.org>; Thu, 1 Aug 2024 00:08:55 +0000 (UTC) X-FDA: 82401741030.03.38796AE Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf03.hostedemail.com (Postfix) with ESMTP id 4E3E42000D for <linux-mm@kvack.org>; Thu, 1 Aug 2024 00:08:54 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=kUivBdiq; spf=pass (imf03.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=1722470879; 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=GWc3I5Kqs5qk7mUeMYX+NsQP6pudiWCnjMNun9Cv1mqSPkufa2l61q+5okl7ngAHCnPrce /OwBsCHoD2rGxvnF5mzHK29x86BejkxShbUKN8Y4Wk9EmfFB8jBGS3iim0WF9tM8MU4WiH p31+A1dmpeHGNtKxLN6T3Wa4Ke68AlE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722470879; a=rsa-sha256; cv=none; b=OEYgcpiabV9rG1fTMUwTaexVUb6DU0a5IyWvqcHbusJkx+q/YP1l4N9dNeB3f/WfMdBtg5 gxSTdc0KFY+uufaJ+JbYuwgXe0txam0ZJJrmbiWrTGaYS9k3Vv8JRDWgmcu92trlk+FIon VESUi3tNIHLR9EGWnCbIQbtvG/iFfVM= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=kUivBdiq; spf=pass (imf03.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 8486862665; Thu, 1 Aug 2024 00:08:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C057C116B1; Thu, 1 Aug 2024 00:08:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722470933; bh=ifLa6ui520OxD4tx6GpOL1mZtUOCjuqJJxFCxi3qo5o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kUivBdiq+ljrI8Gj0tdo4pLab5vvfpKTImgKvmcvTlTlbF5y7wRSOxm4qYZPTwRrY 9St9UbAqB/1kv8ZPBXZIS8y3eRCZKDQ57QumGUiQIsO00sUO9UfMQOijL9qMuudvnz aKOC5wQz2A54+FBlR9nidtxr4w67RBmayYNlzhNolOJwOFsIjD0Ym1brzxi1h7QCf3 qiHZur/RDhDo9nOBevWr39KwXMfkYs3kTPoVkSR2/Y3qC6Xog5zZp9GYEV0X4aWYz/ DDXt3B7GcuuZE7t1VZNtZkX60Rjn3wfax61v1tlZhI3RDyOotEPkpxGFK1zrpAPllz X9DqJJD90FF7A== 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 v3 22/25] rust: error: use `core::alloc::LayoutError` Date: Thu, 1 Aug 2024 02:02:21 +0200 Message-ID: <20240801000641.1882-23-dakr@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240801000641.1882-1-dakr@kernel.org> References: <20240801000641.1882-1-dakr@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4E3E42000D X-Stat-Signature: 8aet1yek99y47uag3tcebx31yqmm3okt X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1722470934-652886 X-HE-Meta: U2FsdGVkX1/l8TaLMc74NOBxv+SCzpjzWhxCf4tR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j+2KUiP4BVFBmzcIuqKRU6YsX1g5vZurz95Qhl5fTkoOm3EgAX/hm6xDPjvmHWuHWPeXUPdp4jXctpYvD3c7wx0c1poTTeqQEDgKGwBxxB8Sw66UGKVVmajW5Z/FN/2ydWfJfGeaELW40sbPuUJAdcfeZwjYCs6y7XdIxh3xrtQspEk2SsxQTcRLj6VIQW1XGJBg9dWw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, 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(-)