From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30E38342CA2 for ; Sun, 11 Jan 2026 12:03:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768133009; cv=none; b=oAV2L1vv8vmCAo/XcxfSfoUBjkfPycuRAE6slKVN4uVjbpqKjbht24koJIqeTGXrdb1a5lYTH83thV72eqqgyH9inzwBHV4GtxuwaCVrbmSTinRQwqjCfk76nW4QX3jYWGo5BLtsHAhlo/KFhmEK+v8mWTRTw6DbVsfRj2sqvyU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768133009; c=relaxed/simple; bh=WKc4i4v80tMsJkenSfj02FR/kGNrvayAalCg1TZJJIs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QA5aivrLRTTn8B4MM/gG76Qkt6cwCpbMIlVfn5eoyz9vI6gw4QIWLFtQ4tkGnlkhInmdM34/SPMKwkxyS4fONPy7JSjKDGZTihawwmYyEgm7n1IM639rLb88PJ3YMV6Og87rWk2P/8GOxKjxYETWFplU96fjyfMZYTOz5NZt2xc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fQViB6HI; arc=none smtp.client-ip=209.85.219.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fQViB6HI" Received: by mail-qv1-f48.google.com with SMTP id 6a1803df08f44-88a367a1dbbso95110076d6.0 for ; Sun, 11 Jan 2026 04:03:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768133007; x=1768737807; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:feedback-id:from:to:cc:subject :date:message-id:reply-to; bh=z7yCC1H8Wlgvqnhz5fJtpl2qjxmqYPYGt+wUVIjeMpY=; b=fQViB6HIVSyI2LlwTQCJFPxYJlFs6G10UZ2ZwosdonXkZq8KoSXFwQ3gZ59UjiiRr4 MV5k13AYvm330/2H+fMOXJTrK+gFT6fRXzuUI5CVjvTi95fMzeSfo7c2rT7Ex6720Uni f8Cz8dUO9StmZwcp05jmTHwrg3XXTk5qUsYFRnRzYYKwpNwS31EX/DPczhXapsrQLexy tpNQnJ7tHihKmFGCJsSdbJfqZUZOfNbTosK+8EmRbZdI9KLpPseNHD+czS73/JHbeAgi XpxUeNL6CBmpzusjxLGgBdB6+CVLk/NtSIlLFSW1WVOUH9Xtcfm8RYc0CgogBSROTzSL O0Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768133007; x=1768737807; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:feedback-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=z7yCC1H8Wlgvqnhz5fJtpl2qjxmqYPYGt+wUVIjeMpY=; b=KDrNn0vUz8IqBqL8fQgbquqnIn6w1FG0MnLdacENDu6LjOUw/oPey36h10/8IMSCy/ QVM9bOGY/GYciFWFRsN0ceocAu65E5mbdUAxArQDcLyTWFxru54gYvFOO0BBbe8Q++ol btrKbRVC/wVmeA8yISzayH8nhwRlU1xPUI2gZEy1cNYbQWWeHpk64BT/5Zq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338a:b0:882:3704:3028 with SMTP id 6a1803df08f44-890841d0ad7mr200387456d6.30.1768133007135; Sun, 11 Jan 2026 04:03:27 -0800 (PST) Received: from fauth-a2-smtp.messagingengine.com (fauth-a2-smtp.messagingengine.com. [103.168.172.201]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-890770cc7eesm115665516d6.2.2026.01.11.04.03.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jan 2026 04:03:26 -0800 (PST) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfauth.phl.internal (Postfix) with ESMTP id 53C5EF40068; Sun, 11 Jan 2026 07:03:26 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Sun, 11 Jan 2026 07:03:26 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudeghedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepuehoqhhunhcu hfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucggtffrrghtth gvrhhnpedvveekvddtffelffelfedvudefffeuheejgeeivedufffgledvgeduveffueeh leenucffohhmrghinhepmhhsghhiugdrlhhinhhknecuvehluhhsthgvrhfuihiivgephe enucfrrghrrghmpehmrghilhhfrhhomhepsghoqhhunhdomhgvshhmthhprghuthhhphgv rhhsohhnrghlihhthidqieelvdeghedtieegqddujeejkeehheehvddqsghoqhhunhdrfh gvnhhgpeepghhmrghilhdrtghomhesfhhigihmvgdrnhgrmhgvpdhnsggprhgtphhtthho pedugedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgvthgvrhiisehinhhfrh gruggvrggurdhorhhgpdhrtghpthhtohepmhhinhhgoheskhgvrhhnvghlrdhorhhgpdhr tghpthhtoheprhhushhtqdhfohhrqdhlihhnuhigsehvghgvrhdrkhgvrhhnvghlrdhorh hgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdho rhhgpdhrtghpthhtohepfihilhhlsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehmrg hrkhdrrhhuthhlrghnugesrghrmhdrtghomhdprhgtphhtthhopehtghhlgieslhhinhhu thhrohhnihigrdguvgdprhgtphhtthhopehojhgvuggrsehkvghrnhgvlhdrohhrghdprh gtphhtthhopehgrghrhiesghgrrhihghhuohdrnhgvth X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 11 Jan 2026 07:03:25 -0500 (EST) From: Boqun Feng To: "Peter Zijlstra" , "Ingo Molnar" Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, "Will Deacon" , "Mark Rutland" , "Thomas Gleixner" , "Miguel Ojeda" , "Gary Guo" , "Alice Ryhl" , "Andreas Hindborg" , "Benno Lossin" , "Danilo Krummrich" , Boqun Feng Subject: [PATCH 28/36] rust: processor: Add __rust_helper to helpers Date: Sun, 11 Jan 2026 20:02:01 +0800 Message-ID: <20260111120209.6133-26-boqun.feng@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260111120209.6133-1-boqun.feng@gmail.com> References: <20260111115808.5702-1-boqun.feng@gmail.com> <20260111120209.6133-1-boqun.feng@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Alice Ryhl This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng Reviewed-by: Gary Guo Signed-off-by: Alice Ryhl Signed-off-by: Boqun Feng Link: https://patch.msgid.link/20260105-define-rust-helper-v2-13-51da5f454a67@google.com --- rust/helpers/processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/helpers/processor.c b/rust/helpers/processor.c index d41355e14d6e..76fadbb647c5 100644 --- a/rust/helpers/processor.c +++ b/rust/helpers/processor.c @@ -2,7 +2,7 @@ #include -void rust_helper_cpu_relax(void) +__rust_helper void rust_helper_cpu_relax(void) { cpu_relax(); } -- 2.51.0