From patchwork Fri Oct 4 15:41:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danilo Krummrich X-Patchwork-Id: 13822625 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 D8CD4CF884B for ; Fri, 4 Oct 2024 15:43:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5B4956B0204; Fri, 4 Oct 2024 11:43:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5151C8D0003; Fri, 4 Oct 2024 11:43:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3426F6B0209; Fri, 4 Oct 2024 11:43:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 139426B0204 for ; Fri, 4 Oct 2024 11:43:26 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id C7B9B1C6CC5 for ; Fri, 4 Oct 2024 15:43:25 +0000 (UTC) X-FDA: 82636339170.02.CC27340 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf12.hostedemail.com (Postfix) with ESMTP id 463AE40012 for ; Fri, 4 Oct 2024 15:43:24 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RAX5Fxuo; spf=pass (imf12.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728056537; a=rsa-sha256; cv=none; b=iFAAzNUj2W+E61sOVWRK+Yvrcclz8vu3m2F5vF/EX8xrHtTBKGpYiBCY2h1yxUQ3I/eO8L /Ce5UErWlkIIxqsmAu2lfopqiftQO3O7k4bwVFxkWnM6KWx/5RmzDEd15s++mMi4q4ic8I EVq6CIHXmeoH4elv/2iE6zLxzqV/3RM= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RAX5Fxuo; spf=pass (imf12.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=1728056537; 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=E7l3jw4VzmVq8jCvm8AbHDaiauwez7wdevDnzoPUpMQ=; b=WSmHIApohYb7KxIZ9sLzer5t+mAW/c1s7riaLqsLXAj3cK+MSF6VyysEXhpjdkcPELP3MZ SwTtAeoYHngJGXRD8Y/bJtLmcuH1gBhFiWmBK2cW4mssCR4GyXK7ioKyGZlMBCTUHgnKo3 /zjFyWKc/99NsyuPwz6oYZNubWnF3sM= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0B0415C5EE5; Fri, 4 Oct 2024 15:43:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A84BBC4CED1; Fri, 4 Oct 2024 15:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728056601; bh=83eAnIr1D5O9vSM1uHBUzB+eFQ2uxXd/+rUZl+c6k2o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RAX5FxuocB81c4eS/xKda7a1vgBAAor7uSqS3MWtBwA7kw+xQ3UyS2nA03SKUGH+Q pLhGAhPALTKoIQleAVL6AR3hqdHJEbrttt9mfwcZoRRbnLsIcq88/xrOL+IzCR8kPo YoNd6gYwsTQek/s0Z3T91AK3r9l/HO1hxOshZy3AsZJV5ba1DNcxjoEs1hit3lWLa+ ELkhPNrbPYlJQwcYLil7DckqarR2yCx59JC0TBqlq5eFefw8zweVV+nq8t2aQy1syn gBBaFWaEfo3J/eWy1zAi5mY80aDTblQfk8AXC2fYIo4PGhj7rGBd0WvvcBTMP2kCB2 uwabeVJOIAXxw== 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 14/29] rust: alloc: add `Box` to prelude Date: Fri, 4 Oct 2024 17:41:18 +0200 Message-ID: <20241004154149.93856-15-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: nmbcd49nt5uuigq4k9urjck6j3zpkxbm X-Rspamd-Queue-Id: 463AE40012 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1728056604-669896 X-HE-Meta: U2FsdGVkX196pCvzW6lat7/l0Johz2TGNrZqOa1vDS/+xtuQNCO6ua7B+h9y1LPPY85I7Jke+rg0/4GBON5bveJ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okM8Uqhxumt90RaLhi1mrTN8w7KjnFHJUuMV8x1n6DqIe60OEfsMsSUXg8y1yZT+hqMo683qO7KAm+i7k7j2rdsnexU0xIhBQOrmXGQ6fujirUHsVBylgl16eUS2DwLq7Ljy+1CUNetgn4KUe5zwdS2SGKdA8s4PETtgasqiHP1kSggjdSayDZRCvqen9bFjAosUDDi4O2i58RXcrU 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 `BoxExt` and the corresponding includes in prelude.rs, add the new kernel `Box` 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 c1f8e5c832e2..d5f2fe42d093 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::*, vec_ext::VecExt, KBox, KVBox, VBox}; +pub use crate::alloc::{flags::*, vec_ext::VecExt, Box, KBox, KVBox, VBox}; #[doc(no_inline)] pub use alloc::vec::Vec;