From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A3FBC7EE37 for ; Fri, 9 Jun 2023 06:54:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238535AbjFIGyZ (ORCPT ); Fri, 9 Jun 2023 02:54:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238508AbjFIGyO (ORCPT ); Fri, 9 Jun 2023 02:54:14 -0400 Received: from aer-iport-7.cisco.com (aer-iport-7.cisco.com [173.38.203.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7F3D30ED for ; Thu, 8 Jun 2023 23:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=726; q=dns/txt; s=iport; t=1686293651; x=1687503251; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GMSLHqa/dU+WulxB8Y5q9/J1tQlxUn4h+TrrE64kcXU=; b=kDGHg9P737PhqMnZvXjMPmRvKAYtMEj6GHHC1mVaFhewNfGZ+kvNjPCj 4hc+YZ1wQSx9indxH2FHMXSyMXmoDCggGtGlkqH6AYSUmZmX+Hrrc4bE2 KLEGwSvXaa1i0pLI0tzRgd2L7q0+deY8TY7K0fJPP7NjdUowhL4FcIb19 o=; X-IronPort-AV: E=Sophos;i="6.00,228,1681171200"; d="scan'208";a="8508926" Received: from aer-iport-nat.cisco.com (HELO aer-core-5.cisco.com) ([173.38.203.22]) by aer-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 09 Jun 2023 06:31:41 +0000 Received: from archlinux-cisco.cisco.com ([10.61.198.236]) (authenticated bits=0) by aer-core-5.cisco.com (8.15.2/8.15.2) with ESMTPSA id 3596VIDA055061 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 9 Jun 2023 06:31:40 GMT From: Ariel Miculas To: rust-for-linux@vger.kernel.org Cc: Ariel Miculas Subject: [PATCH 16/80] rust: helpers: add missing rust helper 'alloc_pages' Date: Fri, 9 Jun 2023 09:30:14 +0300 Message-Id: <20230609063118.24852-17-amiculas@cisco.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230609063118.24852-1-amiculas@cisco.com> References: <20230609063118.24852-1-amiculas@cisco.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-User: amiculas X-Outbound-SMTP-Client: 10.61.198.236, [10.61.198.236] X-Outbound-Node: aer-core-5.cisco.com Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@vger.kernel.org Signed-off-by: Ariel Miculas --- rust/helpers.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rust/helpers.c b/rust/helpers.c index efbe9d917a57..00a4c90c15e3 100644 --- a/rust/helpers.c +++ b/rust/helpers.c @@ -198,6 +198,12 @@ void *rust_helper_alloc_inode_sb(struct super_block *sb, } EXPORT_SYMBOL_GPL(rust_helper_alloc_inode_sb); +struct page *rust_helper_alloc_pages(gfp_t gfp_mask, unsigned int order) +{ + return alloc_pages(gfp_mask, order); +} +EXPORT_SYMBOL_GPL(rust_helper_alloc_pages); + /* * We use `bindgen`'s `--size_t-is-usize` option to bind the C `size_t` type * as the Rust `usize` type, so we can use it in contexts where Rust -- 2.40.1