From patchwork Mon Aug 12 18:23:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danilo Krummrich X-Patchwork-Id: 13760936 Return-Path: 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 5FCFAC52D7C for ; Mon, 12 Aug 2024 18:25:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E634C6B00C8; Mon, 12 Aug 2024 14:25:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E11B76B00C9; Mon, 12 Aug 2024 14:25:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB3386B00CA; Mon, 12 Aug 2024 14:25:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id AC4516B00C8 for ; Mon, 12 Aug 2024 14:25:56 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 5C94912032C for ; Mon, 12 Aug 2024 18:25:56 +0000 (UTC) X-FDA: 82444422312.16.ADCE3CE Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf07.hostedemail.com (Postfix) with ESMTP id 58A6F4001B for ; Mon, 12 Aug 2024 18:25:53 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RFANQs8K; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf07.hostedemail.com: domain of dakr@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=dakr@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1723487098; a=rsa-sha256; cv=none; b=VIiSZ7rGWdGUIaf5CPBqz0YPE5jasInVwzqPtfs6g072A9xEfASmg6gl5aSTx6wRY8aD7o /QLmeCfZJeeBD+lt88D9Et6pGVBHvEISW8bIw0MgqztVRyBPrLUVP8rBP631gbtg9oDV/w SEWQv35CYyZ4T4MYdaFkJdwAB56Sxio= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RFANQs8K; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf07.hostedemail.com: domain of dakr@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=dakr@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1723487098; 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=g1R9gIj4SQMr42HuGSUWbYPxxOPjOGUq6XkQelh+mrc=; b=NfSijM3u2/nvb5WS3YdrhsJO9KZ4GxVuiyz7LNvWyRneh0RA1hr37XCBqUicyMYf7JP73B FeOn0m4S7DLElBQuRamoWj9T/EoWLKY4rUfEyc7o14iC9OYE2USOrPflYTWKvFYrmlCn4D YQnBqFS39kb7HQWFvxuTqSB2ctsankw= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id D028FCE0FE7; Mon, 12 Aug 2024 18:25:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1086BC4AF0D; Mon, 12 Aug 2024 18:25:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723487151; bh=0dpQ6RwX2xjp+lowuXDw7W+vANiY3byDZScI1bxbWmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RFANQs8KnWUbqjWcgpReCK3akBNyTxN5G7+ALY8zDgxdFBUbg91hMAYGLm8Cyy46y 8hQ3vT0NqM6HMBHSF7PX/VMuaWGV6mqSQsdqCsquwk3VNxrZsONORzV7d1nPVvZhFR g2ojtllxh+Pkc9ypjJW9hBOU5J/CAVz2utpgqVYP5Ty+Itj77oCQRABIyPQHSL6bv3 cbZFxVx2do+sVzOMzZnlTpud1jdCOey3VwBjhOOZqaQYrwBUvp1JySoJIiPfkjS5Zp E+FgglRyvAii+4VL4l9l8d129f9gLgWwCHBKnPLqu9NtmuAn2KirH56B/V7DCIW5gY wP2q8rBP7VSEg== From: Danilo Krummrich 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 Subject: [PATCH v5 19/26] rust: error: use `core::alloc::LayoutError` Date: Mon, 12 Aug 2024 20:23:05 +0200 Message-ID: <20240812182355.11641-20-dakr@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240812182355.11641-1-dakr@kernel.org> References: <20240812182355.11641-1-dakr@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 58A6F4001B X-Stat-Signature: ircsq4ff7up9bincyjrxnbrddcor5iu3 X-Rspam-User: X-HE-Tag: 1723487153-479695 X-HE-Meta: U2FsdGVkX19RuNJQfKu7oeeudAIcqTa6/CRXRdj4NWycUslMO1wCSXG8O531tg+0HTfJOJ5AYxuXHDWJbuKxdaVVnpiFMAZXK8K8TEUd/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ba5Dr3EMk/8LJ8b/Nhoj3pTb1FSE0XfrhpVM2MfQx+zbleV6zHpYWaBM2yh0H+JL3AvK56pGdmaKgjPCCY6MSvAZwYV03MxndIsCCYrfEIF16r9ao= 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: List-Subscribe: List-Unsubscribe: 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 Signed-off-by: Danilo Krummrich --- rust/kernel/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;