From nobody Tue Feb 10 16:02:12 2026 Received: from fout-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7826C42AB1; Thu, 14 Nov 2024 00:57:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.146 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731545831; cv=none; b=hLYwrPvohuRDwEBSJW0CH5Vlv1i7BpTkCR3Ua0Ii336aaVowMUUAscNRCguhjg0RzwxSllxQiXyYK4xlrWIoJ1y4f8X1ObxwhGbGvcC1Xl3VLdVfbeIMwwCtbOCn9FUeS8vCFVwcuc4Bz+cX605PtZMlyYluT5j6BkXeNuXziNI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731545831; c=relaxed/simple; bh=vHXnakfFjhg1fCzLWGE2sHwz/+s+gpfJaYfgMui8rJg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=g5TIJzZwGN8m8lo9ichEnnEjNWrUwRnZTTaU8Vq4NgIBzc/jMfPvhhZMIWaI08nvi8oDDIM+hptzfLXI/7Z/i5R4f71u63H8n7S2QuOBNaxemta0loBDdDIrR6qs+XxIOkEpgNexkkFTsfyJU5tLDYNfVqIrXzdXo/rEg2B4/Yc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alistair23.me; spf=pass smtp.mailfrom=alistair23.me; dkim=pass (2048-bit key) header.d=alistair23.me header.i=@alistair23.me header.b=sLixs6T0; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=dEJs6JZQ; arc=none smtp.client-ip=202.12.124.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alistair23.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alistair23.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alistair23.me header.i=@alistair23.me header.b="sLixs6T0"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="dEJs6JZQ" Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id 25AE5114020F; Wed, 13 Nov 2024 19:57:08 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Wed, 13 Nov 2024 19:57:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1731545828; x= 1731632228; bh=uWdpOcemEhndhcjPj0JJ7aMk2JcquAOu04zIrIsFvmU=; b=s Lixs6T0EA9s3c0axe1hjKTic9w6B0rQDIsEcCXO6v0pKAiSXtvX3DyouRGtaGAI6 DgDKbPf0oJkNBjHP47d/jGU2saB8+Q3zgzY1I3V0Yp3dau3FZPBbr+XW7femSJ+x WPGgAo2KLx7h1RxKCCoUMj36qLOCmnOf3/Oidby9zrIk36Z2SzRMbgV2VwPcKXFH j7BMGppF2fx4VcREqQhpYtXVnmCG9+FQYAtLtjfFZasOF8IjTyzqvqw+iodZ0QbL Rm201KKxyod/Ue4xkrRbdk7ve8RhiUsrdAgbKpuNj44w95zq05qad2Sq4DOEBjfn Ni+o+K32IzJ9UG1bR4dag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1731545828; x=1731632228; bh=u WdpOcemEhndhcjPj0JJ7aMk2JcquAOu04zIrIsFvmU=; b=dEJs6JZQfi+bVZe2a vEkszUebhoOEg6a9c8EZ2WLJb58SBoAnmoXoqJfLRiRhLbflBsiQ844vUZ8iH21Z o/6Ypr9DUdpvI9E8e7T/74yLetchVUSqsbWGDDe4cM4w1QMlZLoXF9JaPfXG3XBh KDywaHggT0YrBt0DwSgWDM6H8irPMHSFt1yh1iaewTfJMot1DK5zXf5Of38Eauad pBgAQl528bm+UEh2FdlqGifpFskyuxt+GINhm5VEq+OaAb81RUYSpB1gwXHyQzWn GcUG0j75OE3Xd9NHMBqwafUWsNxfSOyI//RPuOWFyhWUPX2ENU6S61Z9M+b+rJbg mG5eA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrvddugddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecu hfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepiedtfeekteelvdelveevueeu jeffuefguedvteekveejjeeutedufeethffgheehnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheprghlihhsthgrihhrsegrlhhishhtrghirhdv fedrmhgvpdhnsggprhgtphhtthhopeduiedpmhhouggvpehsmhhtphhouhhtpdhrtghpth htoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghp thhtohepsggvnhhnohdrlhhoshhsihhnsehprhhothhonhdrmhgvpdhrtghpthhtohepsg hoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhgvsehklhhovghn khdruggvvhdprhgtphhtthhopegrlhgvgidrghgrhihnohhrsehgmhgrihhlrdgtohhmpd hrtghpthhtoheprgdrhhhinhgusghorhhgsehkvghrnhgvlhdrohhrghdprhgtphhtthho pehgrghrhiesghgrrhihghhuohdrnhgvthdprhgtphhtthhopegrlhhitggvrhihhhhlse hgohhoghhlvgdrtghomhdprhgtphhtthhopegrlhhishhtrghirhdrfhhrrghntghishes figutgdrtghomh X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Nov 2024 19:57:03 -0500 (EST) From: Alistair Francis To: linux-kernel@vger.kernel.org, benno.lossin@proton.me, boqun.feng@gmail.com, me@kloenk.dev, alex.gaynor@gmail.com, a.hindborg@kernel.org, gary@garyguo.net, aliceryhl@google.com, alistair.francis@wdc.com, bjorn3_gh@protonmail.com, tmgross@umich.edu, rust-for-linux@vger.kernel.org, ojeda@kernel.org Cc: alistair23@gmail.com, Alistair Francis , Dirk Behme Subject: [PATCH v4 05/11] rust: helpers: Remove some page helpers Date: Thu, 14 Nov 2024 10:56:25 +1000 Message-ID: <20241114005631.818440-6-alistair@alistair23.me> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241114005631.818440-1-alistair@alistair23.me> References: <20241114005631.818440-1-alistair@alistair23.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Now that we support wrap-static-fns we no longer need the custom helpers. Signed-off-by: Alistair Francis Tested-by: Dirk Behme --- rust/bindgen_static_functions | 2 ++ rust/bindings/bindings_helper.h | 1 + rust/helpers/page.c | 5 ----- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rust/bindgen_static_functions b/rust/bindgen_static_functions index b4032d277e72..ded5b816f304 100644 --- a/rust/bindgen_static_functions +++ b/rust/bindgen_static_functions @@ -11,3 +11,5 @@ --allowlist-function PTR_ERR =20 --allowlist-function kunit_get_current_test + +--allowlist-function kmap_local_page diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helpe= r.h index 00b1c1c3ab76..452f8afc9b09 100644 --- a/rust/bindings/bindings_helper.h +++ b/rust/bindings/bindings_helper.h @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include diff --git a/rust/helpers/page.c b/rust/helpers/page.c index b3f2b8fbf87f..52ebec9d7186 100644 --- a/rust/helpers/page.c +++ b/rust/helpers/page.c @@ -8,11 +8,6 @@ struct page *rust_helper_alloc_pages(gfp_t gfp_mask, unsig= ned int order) return alloc_pages(gfp_mask, order); } =20 -void *rust_helper_kmap_local_page(struct page *page) -{ - return kmap_local_page(page); -} - void rust_helper_kunmap_local(const void *addr) { kunmap_local(addr); --=20 2.47.0