Message ID | 20240723181024.21168-13-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 D9459C3DA49 for <linux-mm@archiver.kernel.org>; Tue, 23 Jul 2024 18:12:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6DC346B00A4; Tue, 23 Jul 2024 14:12:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 68A8D6B00A5; Tue, 23 Jul 2024 14:12:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 52B9B6B00A6; Tue, 23 Jul 2024 14:12:07 -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 340136B00A4 for <linux-mm@kvack.org>; Tue, 23 Jul 2024 14:12:07 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id A249B80354 for <linux-mm@kvack.org>; Tue, 23 Jul 2024 18:12:06 +0000 (UTC) X-FDA: 82371811452.22.BF7C6E7 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf05.hostedemail.com (Postfix) with ESMTP id 708E9100028 for <linux-mm@kvack.org>; Tue, 23 Jul 2024 18:12:04 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mz+c3jib; spf=pass (imf05.hostedemail.com: domain of dakr@kernel.org designates 145.40.73.55 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=1721758278; 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=cHKIK9Hj0X9URM2kDw8l8RIBCPF9M4nY1ntV89F0EJY8AONfIzdyLXeMTXXpKJCS2+h/rn oNW2fx66YGzensJZv81rzyeGvfOinmGaDcn4ZqxxbqMjaaGJd4xodSj8WXOwGRa/5ajaXh jyFSO/e+h+Q/qJTX2cQewckaltmGaMU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721758278; a=rsa-sha256; cv=none; b=Ffdu1qg+A8Uneq+zuBXXhIOjcFTWL/VqSBYuMydYdoMogqA7m6JU1MgjlZEZ5fY5QQpStN yXBMzch1wrBpmeAcenOdses7YUi65KKwY5wNLg0Lj3EMbbHuVuK15sU2w9O60XcoChYJ9v R+DFTLFE7RFKSH9RO309XsBbkA6IvyY= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mz+c3jib; spf=pass (imf05.hostedemail.com: domain of dakr@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=dakr@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id C0313CE0ECC; Tue, 23 Jul 2024 18:12:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C81ECC4AF0A; Tue, 23 Jul 2024 18:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721758321; bh=IsegupDL6dNouhj9LI4K0JPI4QQWWwWlwU04wMc/SwI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mz+c3jibuWgJwcKZM7aGqSADuz6ejR/ZC+t7GQrirU7NnutbHsXT+uJXKZb4R9isB rHeWk5FliserG8OO84VXZRoBXyHeglwLW8dxd/RWCofCPQVFhOZ2t0qCXAXD0FRNuz Hle+I8HjZ/w5RNPtbZTY0zZTnON2De2BWvXnbDZBFrZKuqwn7iJ+ZbTU+50uGLYEmi Hr07A4LgDXLVHFapDWKC4BU+clELnUWbr7jFSqwK4IzENwCrlbHfypc6v9hOf2LeBg yOnDFA5qpGPFY56bCw6G28x9cbkY+/MIFWO56Xh/+hOnZaMs7pLCyS9C6CxGMoa1in rB73961xp9k5g== 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 12/23] rust: alloc: add `Box` to prelude Date: Tue, 23 Jul 2024 20:10:01 +0200 Message-ID: <20240723181024.21168-13-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-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 708E9100028 X-Stat-Signature: zc79nxgdgqb4cq7neumpyd7bsg19wrhx X-HE-Tag: 1721758324-440539 X-HE-Meta: U2FsdGVkX19KK7H8WemSYHCDJxhBBt0QwecQcegbB25C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zE7y9YNMxHJW3bL1DYoL8C6fKRQf5ylE8DaYxmOWAapPpGZzQC0fEbyH0eGEdKnFFkIWAqnbvh2yrLLSuzAvSoVXsCFGorHyYykf5KILeoDowJi0M83ssqQLxUiIUYmMOKTicp6A9rrox7nAm6TEl10xn7FXyLXOrLi/QSeekhuR4kSqoHKyQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000135, 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 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;
Now that we removed `BoxExt` and the corresponding includes in prelude.rs, add the new kernel `Box` type instead. Signed-off-by: Danilo Krummrich <dakr@kernel.org> --- rust/kernel/prelude.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)