From patchwork Tue Oct 1 14:59:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danilo Krummrich X-Patchwork-Id: 13818224 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 79B25CEACDC for ; Tue, 1 Oct 2024 15:00:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0673E680008; Tue, 1 Oct 2024 11:00:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F0985280068; Tue, 1 Oct 2024 11:00:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DAA86680008; Tue, 1 Oct 2024 11:00:46 -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 BD483280068 for ; Tue, 1 Oct 2024 11:00:46 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 5247DACBC0 for ; Tue, 1 Oct 2024 15:00:46 +0000 (UTC) X-FDA: 82625345292.04.89EA19A Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf23.hostedemail.com (Postfix) with ESMTP id A20CB140034 for ; Tue, 1 Oct 2024 15:00:44 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=k6HrTB7k; spf=pass (imf23.hostedemail.com: domain of dakr@kernel.org designates 147.75.193.91 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=1727794718; 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=vtK7pwCIp1XWr8gylUfXucmct7iS+W71YhesijIHKKo=; b=78l+Mq+lykg+ydSJEAZ7HJ4x+tnJyh67wjOCR9VU7nzUvK+QfY1RuS6BvFYJ6vic0+J5Gg oYv2dW+H7XGQ3Gqu5nFhMqANT4S8AdL+pMlOiDNadF3vl0x96ZkL/d0+Lu8weCldjtHLdo 6JfSZ4pe6Jmw5hV5Q7IGuDUMr1RCoxs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727794718; a=rsa-sha256; cv=none; b=5iOgVc3l8FN1zwFUujK2rvAy3ol9iOa+D5RH3lAor2qwAJFPt9qSZYOLlrF+6AUheZG58F rRAgzECvf0j2mt4m6RPpqo/9vGy2RGrym8bHdYGr7/FfmQY0pRGHXDY+ROEwIY1v1bqCKM gpZKxqHPRgN9oa4S4l7kNtQAY5Be22A= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=k6HrTB7k; spf=pass (imf23.hostedemail.com: domain of dakr@kernel.org designates 147.75.193.91 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 nyc.source.kernel.org (Postfix) with ESMTP id A9177A43636; Tue, 1 Oct 2024 15:00:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A251FC4CED5; Tue, 1 Oct 2024 15:00:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1727794843; bh=Q8k1CNJBRt+py+dbCiPnncTCxkP76JA0XnMHDcdIPww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k6HrTB7kXzr7UXNi/oqSSMVdSvQbzfQ2Hm1qoZEOXD1oExN1ccaOqbAue+hMgqwlG aFuaTfrxYlEDY1OsaerO20MVWs+GrHT93LlBRHbNM3oWblgJzg2DIULKyJbvqQKHMM uRUFIu5Uvno/CWEOQEboF+pHcqnLzvQrGoJNSVp6TUomfHRf2Y/F8eo03ZTQNRYiXc 7Zj4zUSlObmvhv5Fjaq4wKqXQKAUL4P7Bp4k76qq56v7MB2xHZUAnZUwfemwdeXfRt hVhXC0aAcrna0GqlbxFIa+jc3xp2yTJlzmqQd+peDun2KTOyoIfnvIgVnCq51XYigd 1HKYsOhwyklkw== 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 v8 05/29] rust: alloc: make `allocator` module public Date: Tue, 1 Oct 2024 16:59:40 +0200 Message-ID: <20241001150008.183102-6-dakr@kernel.org> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241001150008.183102-1-dakr@kernel.org> References: <20241001150008.183102-1-dakr@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: A20CB140034 X-Stat-Signature: ihoxmdihbx6yino1u5uetkpymcz9sp1t X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1727794844-339947 X-HE-Meta: U2FsdGVkX18yVSldyv9KMGiA3Z6bcyemdtLbGWjkwJebI5Fx6kaQWcIF7SxfIOpyMdCMKYq/NnVXOQdu/7FbysFfYF9xrK8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3TKowU1VgjNTv9RObzd2zd3Kd0ifx3B+YMheEjPTCacJ5/EM5wzRt5Ks8DbMIAyTG06FYvhUH4lT2KdSSVpZvLWmDLBLkVhmYZfXm2cDbJ9UAnO2J7H8nQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Subsequent patches implement allocators such as `Kmalloc`, `Vmalloc`, `KVmalloc`; we need them to be available outside of the kernel crate as well. Signed-off-by: Danilo Krummrich Reviewed-by: Benno Lossin Reviewed-by: Gary Guo --- rust/kernel/alloc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/kernel/alloc.rs b/rust/kernel/alloc.rs index da49c5306431..91b2a26faf3d 100644 --- a/rust/kernel/alloc.rs +++ b/rust/kernel/alloc.rs @@ -4,7 +4,7 @@ #[cfg(not(test))] #[cfg(not(testlib))] -mod allocator; +pub mod allocator; pub mod box_ext; pub mod vec_ext;