Message ID | 20240816001216.26575-20-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 BFC95C52D7D for <linux-mm@archiver.kernel.org>; Fri, 16 Aug 2024 00:14:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4AC028D0023; Thu, 15 Aug 2024 20:14:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 45AD08D0002; Thu, 15 Aug 2024 20:14:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2FB198D0023; Thu, 15 Aug 2024 20:14:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 11E3C8D0002 for <linux-mm@kvack.org>; Thu, 15 Aug 2024 20:14:09 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id C1352818D7 for <linux-mm@kvack.org>; Fri, 16 Aug 2024 00:14:08 +0000 (UTC) X-FDA: 82456186176.24.30F5F61 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf07.hostedemail.com (Postfix) with ESMTP id 2EF4440002 for <linux-mm@kvack.org>; Fri, 16 Aug 2024 00:14:06 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fKJgKObJ; spf=pass (imf07.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1723767210; a=rsa-sha256; cv=none; b=jrlmR7virMdKhAQTRMKAfzGUmmINGZK0RbAYCy1GeC5PKK4/IdgfkemmPjUwbDID9MPJus jERR2T0r6IeW7PV55JL1VdQgysfKnrV+ZLm/WvVYHahqrCW//KdNFr+rIuoiYrYu9Hj29H KcrE6srS15T5uRBKpd+D8seSEP7rRnY= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fKJgKObJ; spf=pass (imf07.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=1723767210; 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=TFK4eSeH81s3JqHhGp3C8G6y1LxBws64zTolZRv58oM=; b=6TkshBuhtgHbqJ+9YTT9+4w9BbkWZAPunAHh4GEiJqhbBtRKwAVcsY5wS3JUrZKCz59G39 WcGB/X5xvozA828xAdQqtDa/hylwCiSPjMDC8FdkOnT6vlEgw3W0A8Lfw2GOp6QKlzEh/M efwCQmp6dXwplX3EyBY8aoS8zI8y5xk= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 54D2060A0A; Fri, 16 Aug 2024 00:14:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 274AFC4AF0C; Fri, 16 Aug 2024 00:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723767246; bh=unZr/wctKeO2llH/7rXaGgjBoxn3EEVi4EeNhTJ2sVM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fKJgKObJI+X2UmQVowJ7q51gwpaf2MwFkO5t4y1aBGn0icOlMhlqwKReb6RPYh4Qk j7MMCR3KgSXIZ5dKB/BlbC4UkjsWvD+GY4qr9tp0cBdcMouT8+MFpoBSwFXDQLYQcW xkb3Jp5QOnRpnKNoYBiz2kLl3LfwyoIxd4bkP18/3wBgSOoxFXKkxdV9rD6yGlxtYi 0NO17v5AJDvxUBL8EzYxA1wkP//qS8XDAcFundYdEW2S+VWF7N3yLhKwld88YtjRdc LTn2ggh8HgiHkQdYneYku/q+d3FequHq2IikvRSis2NcmFhMVmr7j7HYwrcs8i9jxa YNou96ZIY75Mw== 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, 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 v6 19/26] rust: error: use `core::alloc::LayoutError` Date: Fri, 16 Aug 2024 02:11:01 +0200 Message-ID: <20240816001216.26575-20-dakr@kernel.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240816001216.26575-1-dakr@kernel.org> References: <20240816001216.26575-1-dakr@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: jnuresqr97gwaiz59s9ici5hzrbj4g3n X-Rspamd-Queue-Id: 2EF4440002 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1723767246-668011 X-HE-Meta: U2FsdGVkX19Xf34rnnJCJpW98oqX89M/sxb1Yn/iWd4+QjeMdX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BHbB88C3bjJFjs9bQmew4mjdV1bhLGfsIGv0CuxIFbX2a3WESF96XHvG8mFVZSbVW5a/LfCLjwyfyQehRsFy0oAt2zF9ZRCMwFytmaDM3g2d91cTKflyeLFvjoxsgMMgoAUJ6yfIU55l8NZmXKcvnXFHMmvOTy65orKimhxJ1yeSpcHKfFlz9L0Aj/1gbRfem487Cti9i8CZpoRFEYdjQQ= 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;