Message ID | 20241001150008.183102-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 65896CEACDC for <linux-mm@archiver.kernel.org>; Tue, 1 Oct 2024 15:02:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E21CB680019; Tue, 1 Oct 2024 11:02:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DD209280068; Tue, 1 Oct 2024 11:02:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C7283680019; Tue, 1 Oct 2024 11:02:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 9E788280068 for <linux-mm@kvack.org>; Tue, 1 Oct 2024 11:02:18 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 55AE11A13F5 for <linux-mm@kvack.org>; Tue, 1 Oct 2024 15:02:18 +0000 (UTC) X-FDA: 82625349156.18.F655CD4 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf19.hostedemail.com (Postfix) with ESMTP id 8B22C1A003B for <linux-mm@kvack.org>; Tue, 1 Oct 2024 15:02:16 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Ymj6w+1U; spf=pass (imf19.hostedemail.com: domain of dakr@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=dakr@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727794871; a=rsa-sha256; cv=none; b=ynPXG8pJO37VkJp6aj4vZBT3RlxEAFCyxxsZ1ECvBNpV04A3j8mCY85GKf1IQJwpxEWn1y jJOKZ6Fjn389bPFjwd9Qid8s03M//lvGXJxUJbjvcwVVoUqbMOkgtMDKjW++SI0zclcrqg v+qvjObHYvZpBv512rQkpvL7NwrvzTQ= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Ymj6w+1U; spf=pass (imf19.hostedemail.com: domain of dakr@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=dakr@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727794871; 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=fvpAqkrAjMlurxJDO8mN3C8w3v5WlXvTigRyvftnEfI=; b=0GXIE99HRXqpEHjka01Co5ku+6w5QPCoVaKoMYKRYTZrDbbSjUDldm1F3BNl53bgzsx/jN kWbijc5l7CVMh+NREVd4C3DICtfszF7LAU1hqYsOFKTqQPmQjuPbmaYmdP/diyhfPpAa3z nsdWQzy3PYZn5fwyyrhBwEB0LnsbY3E= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 9D2B6A40104; Tue, 1 Oct 2024 15:02:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A55CAC4CED2; Tue, 1 Oct 2024 15:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1727794935; bh=gQa83BvihiTDUGMuUjx+C5N2mcc2ulb0bOkT9bwH31w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ymj6w+1UKRHEv1C2NLx2yMSp7QG95ZSroFgy9ebKi+fVSFbKEOWP7fSIjsCn7efsm xg8Px8wG55oXjnANugoRRHfj3g5G09YA8KvaLpEaP7ZDsM5e+aG+D59j92HK2cfzrq tJ8EZRLegFxti8OwTOwHwSQvdYTodPZB/29XMXL8uuBeV5ao4ssrepqlg63pFVOqLl 4bbq8haqOilgKc+I+p/e0OS/KJ27SEkMXBT9akOFYzi6nNmYLn16+Vb7LNQkhATvpw 5kNIdK5fqOhURPgyhs49XBFzZYh9eI1vJ6MgKBTyRK5l/jZsrEc6yDqcHGMw+pDOHJ UVDj2MdqOT+kQ== 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 v8 22/29] rust: error: use `core::alloc::LayoutError` Date: Tue, 1 Oct 2024 16:59:57 +0200 Message-ID: <20241001150008.183102-23-dakr@kernel.org> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241001150008.183102-1-dakr@kernel.org> References: <20241001150008.183102-1-dakr@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: q4tmfo8tqyakq3icddqoydai35nrczjc X-Rspamd-Queue-Id: 8B22C1A003B X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1727794936-763947 X-HE-Meta: U2FsdGVkX1/25m5QJ6YDm82LwJkEc8lOp/K6Q++DRe0X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Bb3uEiNCEcFsHPChn9vbj3gxo1mbi/MHnCdKag5FJ7dHBd/anbL9JBhCnfjtL5jujnt2GsegW8M/DJnvHLILN6lEBLqoq1kx0mYNIADnL2uxN/qmvfPVQS7RdnDvj4JrI8iCSgTyk8GblGZdPeZAWZJQnVHKC2YY1JCwRyldGUlphwXUj6qfQaipP97QEKaWYxtDXBaZTjH/sFwHE7C0u8yujJASuAM3mIT4cRlCXTDhW6n 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 6f1587a2524e..81b4fc5cf21e 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;