Message ID | 20240723181024.21168-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 7124CC3DA63 for <linux-mm@archiver.kernel.org>; Tue, 23 Jul 2024 18:12:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ECAA36B00AF; Tue, 23 Jul 2024 14:12:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E7A816B00B1; Tue, 23 Jul 2024 14:12:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CF54F6B00B2; Tue, 23 Jul 2024 14:12:43 -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 AF5B16B00AF for <linux-mm@kvack.org>; Tue, 23 Jul 2024 14:12:43 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 6A22940337 for <linux-mm@kvack.org>; Tue, 23 Jul 2024 18:12:43 +0000 (UTC) X-FDA: 82371813006.21.F496866 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf17.hostedemail.com (Postfix) with ESMTP id B01FC40030 for <linux-mm@kvack.org>; Tue, 23 Jul 2024 18:12:41 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dF0TMqoc; spf=pass (imf17.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=1721758338; 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=V3RV8SQZBp3cdXNz8SMSCfTp6xtcwDI9ECD1In1etJo=; b=8DJ87u5+REG7CV18Ag7rrVDa5iikcvyVnNmAQHJMvJCdv/9zB49srGpw9qxrh5PR04AiQg kn8BJrok0zWXx88ryHWyuRe+n0clPZ6nVlkGWOaZGIQ+pcTdgkiKC8GQb3dhCTXEiKcZWa s9nmAiJVP4m8xTjg1qYRng7E41GuF7w= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dF0TMqoc; spf=pass (imf17.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=1721758338; a=rsa-sha256; cv=none; b=6fgE33dyzJPyBRGIM+Aelw0d+7dsbWik2wrbZ9LF8o9cBhqRCaP5U58LdId14Zhtudpuuy fT/NXOPeidtfdfIN58kr4t41GLFv2upM7cnzJOhl3RpKaBz1kDdhvBPxLbpgBcHVK+Dw/2 rXgUD1JLlEPeUC/pcLk9Eq6ScrfHV58= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id CD82260E00; Tue, 23 Jul 2024 18:12:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57B0AC4AF09; Tue, 23 Jul 2024 18:12:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721758360; bh=x0JvvRfi87BBCBI94b39MtnQOfc5sS9njBcl08nLwWQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dF0TMqocS5E0+WZ7U2tM4lCRj0VbkcHUh59kSwlafs/iP9FjkjwpShpZM0QwzVErE wr9urpHSVBr6lLNiqiL2kb+LUULbHpammoO8zdEmAkI2EesoB13TN0O+lOdaZIltvk KJ+wmaDX91QSC7JkZdJfG0MpyOCY01MofbIG5bu0mMKN7UY/2jghk5Nl4RtORfL4p0 sYyIl54YuE2r13obYVbDCfxyfLSB0xtNbK8bItOcY2BglI5tbcYd8Au8ax6Zg2Nt9K 2HS0o1kAJuKwdrf4nVZ9vviO/dhPbGQjYYDxMzpgfHytCXlSjj6+YPqD6foRlzNRhv zhkVkTY6S7ilw== 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 v2 19/23] rust: alloc: add `Vec` to prelude Date: Tue, 23 Jul 2024 20:10:08 +0200 Message-ID: <20240723181024.21168-20-dakr@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240723181024.21168-1-dakr@kernel.org> References: <20240723181024.21168-1-dakr@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: B01FC40030 X-Stat-Signature: yox5iny5b7ja5qrat5emftqh9sop9ueb X-HE-Tag: 1721758361-211291 X-HE-Meta: U2FsdGVkX183rVPXM/fOBSLEkcP1fcgTlQamIWaPol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lIWy9q8fY7YT4E23QVRvaFZj5dWPxE+0ZPFsoUKmTfoPP1osnOKaN4fEksHNdZ3MVqAggojqUUw0sURYE6Or2m9oICb+VIIb818KMjru/4RAtph+oPNE7w1A8LU1OzoF7AIir3Hk/xtHAd2FR+CSjVujKo3JiOZDmd3NJDc3ZcrWT9TEcIHZGoDoGOYsqmuxN0C8xn/obw== 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/prelude.rs b/rust/kernel/prelude.rs index fcc8656fdb51..b049ab96202e 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};
Now that we removed `VecExt` and the corresponding includes in prelude.rs, add the new kernel `Vec` type instead. Signed-off-by: Danilo Krummrich <dakr@kernel.org> --- rust/kernel/prelude.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)