From patchwork Fri Oct 4 15:41:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danilo Krummrich X-Patchwork-Id: 13822632 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 CBF6FCF884B for ; Fri, 4 Oct 2024 15:44:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 569FE6B0134; Fri, 4 Oct 2024 11:44:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4EE8A6B0135; Fri, 4 Oct 2024 11:44:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3413D6B0136; Fri, 4 Oct 2024 11:44:06 -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 134486B0134 for ; Fri, 4 Oct 2024 11:44:06 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id C28D01209B8 for ; Fri, 4 Oct 2024 15:44:05 +0000 (UTC) X-FDA: 82636340850.10.CCAB63F Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf24.hostedemail.com (Postfix) with ESMTP id 2BAE3180021 for ; Fri, 4 Oct 2024 15:44:03 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=naxFRuUs; spf=pass (imf24.hostedemail.com: domain of dakr@kernel.org designates 139.178.84.217 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=1728056513; 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=4Tl1whPfU/nWLhFKdIaDrQ4pPfk7cl2YbpR6IXgDySA=; b=1sR5NCGsLJsI0oa09B/8LmaiLCW32F5gtFl9bK7SbrU2VOlbBk2CojCBRl92FJTM0q4RC9 ndAnqOQIcrVX5TX1Eh6jhVugoigvX1o1AOI4gbdj/lMETVqk+2wrP+jmJgtFDBCJ5upsqt i97BAA37EeLk9DmeQY5HgiWMFQ0B9v0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728056513; a=rsa-sha256; cv=none; b=lm6EMynesfW6voffhB+C1kxW5n7/noJ2KAcAUnH2k2VYcULXb+EIxCD8uTGiUoNxVGGldv 2ju6RDeBN7p4JMy/IbDnomoYxFbUGJkjW/a94LEC0uadzvcP0XJLeDQEEJ/WPdS3n5xW7Z On2Xba5EnQpfZfK/rmPdqXYdjifDHEc= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=naxFRuUs; spf=pass (imf24.hostedemail.com: domain of dakr@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=dakr@kernel.org; dmarc=pass (policy=quarantine) 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 E81515C5EB7; Fri, 4 Oct 2024 15:43:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12092C4CED4; Fri, 4 Oct 2024 15:43:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728056640; bh=ZNs0Dj/ExXP/FTdJ3MujwXiT4/A3eVE5pzPxpi0CaOY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=naxFRuUsVrevYd57QkeZy71i1FomL2fbRGU99i6Eh4OdJhiBcD++cCd7C4lZZ6t6l J13m9IC9seV1XcxefMzLNy6XnqX5JtRiasb1Lxflmkb359reiUagWZUxFke+M9Jhag rITOiBJu/rhFJ+UBXkRFf4Jy900Sw2dU/yYly44Pgh1bm1fJ0h/fmvBTYHcIg69vA7 oCDZqjN6iNov7iYvNUiLF3rgYhcXkRdzrVLT3i0o2jI3oyohGXhXO5VzVo/Ggq+eCU jdOl5SBpFNmasg7O04LxeChbme/vLh8PcoLmClEUB6EZwAvt1gI1+VeBQFe4prdEn/ GtHC+mUKMSV1A== 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 v9 21/29] rust: alloc: add `Vec` to prelude Date: Fri, 4 Oct 2024 17:41:25 +0200 Message-ID: <20241004154149.93856-22-dakr@kernel.org> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241004154149.93856-1-dakr@kernel.org> References: <20241004154149.93856-1-dakr@kernel.org> MIME-Version: 1.0 X-Stat-Signature: ehfuu4y3z38ktqpi8dwhcs1nsegoeazq X-Rspamd-Queue-Id: 2BAE3180021 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1728056643-108862 X-HE-Meta: U2FsdGVkX1+7IpXJXemLAR2CeCvQ3b6YFlBt16reSx+9iapERBdQuXME3ackcMAP29viUfJ77EYnn6muKwQa3+zAPnC3u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HwGfb5KSykirHRmrHLT3D7U7MkeK/buTLidgM4uN3X6M7MryS9+YIHn0pyKSg6SNRK5TwTV8c4ql4Jwxm3Jqd5yPNevUpzf6TP/RxG7lb1A6EUCNnUhmqkgq3vF2gamtC2n/jqFtbqravAgkDXSiyDZYEKa+C65Cdx5ieBFo6XRzjAPVdO+Oxhg9i3kpxQ+QA+D/qogv 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: Now that we removed `VecExt` and the corresponding includes in prelude.rs, add the new kernel `Vec` type instead. Reviewed-by: Alice Ryhl Reviewed-by: Benno Lossin Reviewed-by: Gary Guo Signed-off-by: Danilo Krummrich --- rust/kernel/prelude.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/kernel/prelude.rs b/rust/kernel/prelude.rs index 07daccf6ca8e..8bdab9aa0d16 100644 --- a/rust/kernel/prelude.rs +++ b/rust/kernel/prelude.rs @@ -14,7 +14,7 @@ #[doc(no_inline)] pub use core::pin::Pin; -pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec}; +pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec, Vec}; #[doc(no_inline)] pub use macros::{module, pin_data, pinned_drop, vtable, Zeroable};