From patchwork Thu Aug 1 00:02:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danilo Krummrich X-Patchwork-Id: 13749351 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 27BA2C3DA64 for ; Thu, 1 Aug 2024 00:08:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A825E6B00A9; Wed, 31 Jul 2024 20:08:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 91F496B00AA; Wed, 31 Jul 2024 20:08:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7A57D6B00AB; Wed, 31 Jul 2024 20:08:04 -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 5B5016B00A9 for ; Wed, 31 Jul 2024 20:08:04 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id D6EE51C2DED for ; Thu, 1 Aug 2024 00:08:03 +0000 (UTC) X-FDA: 82401738846.14.9DF794B Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf14.hostedemail.com (Postfix) with ESMTP id D4BED100026 for ; Thu, 1 Aug 2024 00:08:01 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=IRYFZy1h; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf14.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=1722470819; 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=Ti17svBMYAUfR9ZfxGdgNbIAVGHYFHfIl4BDg2Ry8vs=; b=NGrqwQFvCTKlW9NnBbYaErDKbqmQyWsLqsmOc41gYi03+pgoX6MyTwJYJtiq+aqE646dA5 2sBFkbZfab2SlSq5OVe+7tm4b3NesKVU55olPwzv8k5m5b/uWb/TD9dszob1nGpT6b/JzL MTSfLK0bPSnJpRlWxJDPDGyk5aH6+9A= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722470819; a=rsa-sha256; cv=none; b=haLbmvEsgvPOZ/BwG+rNYNEJanElfo1jOZk5G3KGwn17xLV8N3lHsa5hG7MCjkqCu3Ytqf RYJHUaPO3H5I4nidt0T42iN1ks3LhTQRkH4ve+r7//DTc+aPWYHHaegQ+v9nCdzkmWHzOO o20RcZVvLWZN9re1TNCodRa2ahWgyM0= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=IRYFZy1h; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf14.hostedemail.com: domain of dakr@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=dakr@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 177FDCE1846; Thu, 1 Aug 2024 00:07:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54438C116B1; Thu, 1 Aug 2024 00:07:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722470878; bh=IsegupDL6dNouhj9LI4K0JPI4QQWWwWlwU04wMc/SwI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IRYFZy1hq3Z3+PX8qgT+MsS8OA/+Rxv4P/v6eqnDklPF9QlxvTVw0QxCzrF60YK+t ySR1ELEfYvaH39ogVK5IQdBjcFG+z9sefH6R5KwlG1JH4XYUXn67HpuYSN+vxGVn8W uAX/A0jAJkhjzp8cC/km6NDyVe3iG3db4GQt6IOEUH4ZyNXS/bqFJh0hSCOwYWZh0M l6KlEaCB3/4qJnnD6h7cRsQ48FvJcxnODhWrnwxpJWj6fgo5Br7lDc9KlElgVC4oGv zFLiG84rkDETV9+CFCjwCLxY7isa79gI/y9Nf+hADVfGhRT5TJWblFWc67BVMx+7gv eE4FT6aWXJmHQ== 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, 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 Subject: [PATCH v3 12/25] rust: alloc: add `Box` to prelude Date: Thu, 1 Aug 2024 02:02:11 +0200 Message-ID: <20240801000641.1882-13-dakr@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240801000641.1882-1-dakr@kernel.org> References: <20240801000641.1882-1-dakr@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: D4BED100026 X-Stat-Signature: dxdxp6t5e5ee5qfabmoaxga6eo4esn8c X-Rspam-User: X-HE-Tag: 1722470881-483794 X-HE-Meta: U2FsdGVkX1+4XgLhi3mMS9T8sEMB9SAHz9QZXQlDBuYt/257fjJhjtFcdafGKY5vTCDMEEaLHj2Oo/K6srp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QfFT59BMGIpjXaGsfNcnm29/nj69AgKZ0YzEHOO379VmYYHR+goKTYfSB+r/Ju1t85E7PLqW7thiVIt0r7xlNjQBlDMAEFidFsFBnDRHvfpHtyf2xfDC4k6kHTseS5c+nsV+/At+5Wxdr4MXDmN0qyZIWObZg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, 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. 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 a8018ef2e691..6bf77577eae7 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;