From nobody Sun Feb 8 07:08:05 2026 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (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 E1EE633A9CB for ; Mon, 5 Jan 2026 12:43:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767616984; cv=none; b=acDz2YkfayVNCpCyRLb28AKOnmw3JvF8henAI6n4nUrbkz1tEeL+U539diHFp72BFyq5oBJ15CXNQA1hS5firvI+XjxzNgoT5w1mqgC+4C+W171qOB8kOCBqvVYrH0Am4lnwQOs/xqJjv7zBdbZj7rMX1H50V1TYEq0VSlzGKyY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767616984; c=relaxed/simple; bh=FGf5TitsuCIz8KGi2Bpi+wkc295BjgenmyozEMleR4o=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=GV1r/FDoblIkv4EBpR0e/Cp54VZ4DMFBpWpZ4PM8mbsHrFdAu3ivsIskhsB+55xFBMxQXXEf0peNf4S9T55p79DAO6XwneU5SlBWqNziR79GtUKQcmSLdKwk15YYPlcWmo8AiY3l9GofB75dQjaWm1Nf5IOmyf4J7nYrwjvNM7U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=FnKdnMVc; arc=none smtp.client-ip=209.85.128.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="FnKdnMVc" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-47d28e7960fso91984335e9.0 for ; Mon, 05 Jan 2026 04:43:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1767616980; x=1768221780; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=7t7KDHljyK/sic72GXX7lUQ+DJiATraWRrWBCTnABgo=; b=FnKdnMVcP8Tb4CPr1urWFTvA/kobCDM8eeMUozL3Y0rTbWmE9PkPeJhxRY6I0WAS67 sVnAtBxxzm/T2pXf084azttlfaBXEDffN13zKz6qCUaHWrzYs3imlNgYo66nkI4UBrU/ xu38070Gk6YtDG4Ci6Vj3ANHqLb3Z4uLqcDQdmlK4GfgDYK8UACyc3m++hkpCYQtTnvu OPc+AwvyN5yEtwCHgY2QsUcZ1ukRwH2eZRRu7gO+L7pjWvWsAG+DXjLtUB3eMuzZFk/1 +SoKg4AH+bSI2AHCq5JTm42sH6Kbdw4hWEc1zHMEoztIz9a0q2EghQyxnIpMKhN1Y1un L41w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767616980; x=1768221780; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7t7KDHljyK/sic72GXX7lUQ+DJiATraWRrWBCTnABgo=; b=dcQF85PmrF7CZZz0nQU/Ulp1SwAQV53OPQX0GZ5bkfQsk44hux7vUjT3DKUD7IylDL Y7Ay4s+8ok5uGoheA2tblTfzpmNn3/ylXLf9U5GIG3LPWI4pfDZAxp2Mu/B6RLZJqb77 0J40NamFi9ipXlpmS1m4fYAsobU5reDiH7xPuxp/zLSZMV9ovfhGL04Wt/9OhGPCe9KA kO3Y07CMhz/y2pfihKYFdEoToqWA67v2VBzB0r5VJT1fYCab6PukukHwu2LAN5ZHPPyw Df44sFlnWmc/t7r+JcSv4MigWY0LUiM1VNtsKr5PHPi5GJcnNGK9AemD7PZ3aN/Mi3zA qXRg== X-Gm-Message-State: AOJu0YwiJng4QZZV+y+qyC1+atQ0li8Wy/cbcPKZII6fzcbWfh95pi+M 4MV9YA+H1UOnnTkK8s/ezsT3br9LrC0JR3be6reNPQC/SLIgLIq23deYuCPMl5d79ILqUWWf9kF aEejJ/ofmqoLKYhFKBQ== X-Google-Smtp-Source: AGHT+IHg1tiBcOrQitMvHuwpbRsE/0LlTWdft24XBVdcCbUxxz09Y9eVB5o0o5seEbWotyhUbJHrsxbsjq9sd5E= X-Received: from wmbjh12.prod.google.com ([2002:a05:600c:a08c:b0:47a:9505:f0b6]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:a413:b0:46e:53cb:9e7f with SMTP id 5b1f17b1804b1-47d1cec8f39mr473625575e9.18.1767616980283; Mon, 05 Jan 2026 04:43:00 -0800 (PST) Date: Mon, 05 Jan 2026 12:42:29 +0000 In-Reply-To: <20260105-define-rust-helper-v2-0-51da5f454a67@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260105-define-rust-helper-v2-0-51da5f454a67@google.com> X-Developer-Key: i=aliceryhl@google.com; a=openpgp; fpr=49F6C1FAA74960F43A5B86A1EE7A392FDE96209F X-Developer-Signature: v=1; a=openpgp-sha256; l=942; i=aliceryhl@google.com; h=from:subject:message-id; bh=FGf5TitsuCIz8KGi2Bpi+wkc295BjgenmyozEMleR4o=; b=owEBbQKS/ZANAwAKAQRYvu5YxjlGAcsmYgBpW7G8PwK1nwyas6YUKFOxu1jkaetUmUBtBEZSw kTitvWLiNKJAjMEAAEKAB0WIQSDkqKUTWQHCvFIvbIEWL7uWMY5RgUCaVuxvAAKCRAEWL7uWMY5 RjHQD/9lu43fZv1LfUsKMyBz5ryvjEbdSWL2DdQYVvE0XT2iJx7lAu2p21xL67N4HSr5sOle91K czNFieyrGUqA5GLcU3r9sqskvrlqpaU0N1pwxMWn/EoKwkc6NZ6cnAaugdI+TZYM8KciNdZ1EtB Ehzukt34Hmpk3fejH0t4fY7r9qgSq8KYrLOgudCCF1FkkY/QOF6pxLlzctTEn6jPWRKOn11EQQN /wpCsAzkbVueWiRIS0oXAPS7yWk3OQ3fLi3mV7He8Eqa9GzFl3Xbe7rCHRN3eFYnw4M8ONDit+a PGc/ALrc0QZeJ97FRlY7rhRSm9FSqDqmlQ2rR7TdU3HYibS5Xh0vc6SFTI4g6eVs5eqvf3EE1ZT 8yNwwo/IQKdcr+3e5om6/8K8CGRssZAHTcUfwMcAffCx3fIpKlYeyYteKPUkYMSCjIjZwQmhXS4 XNPHCzjZF16fUypUsbxt0vgI8SvHlRvrwr+Cd5y7JKTXPsjOMBvgD3cbtAsXem1L6xuToQbvLBz VkVvPv1oGORAPKCBP73AbEQPVvvCXxhnrq5BvNJaumv/broTWinmGg5wZcSOdC9WiqDqWdjYMQN HiOkbb8aXMQANo+lqWXJxrAPXII+CxDU7WjD6vsmy0kUXPav5pK6j2Gie0eL+LAfnN/qHbSQu68 /FVKWm0f8Ors5WA== X-Mailer: b4 0.14.2 Message-ID: <20260105-define-rust-helper-v2-16-51da5f454a67@google.com> Subject: [PATCH v2 16/27] rust: rcu: add __rust_helper to helpers From: Alice Ryhl To: rust-for-linux@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alice Ryhl , Boqun Feng , Gary Guo , "Paul E. McKenney" , rcu@vger.kernel.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng Reviewed-by: Gary Guo Signed-off-by: Alice Ryhl Reviewed-by: Joel Fernandes (NVIDIA) --- Cc: "Paul E. McKenney" Cc: Boqun Feng Cc: rcu@vger.kernel.org --- rust/helpers/rcu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/helpers/rcu.c b/rust/helpers/rcu.c index f1cec6583513497e996f74835ca2c6c3f4a8c954..481274c058577276e20093a1014= fc49f4a40421b 100644 --- a/rust/helpers/rcu.c +++ b/rust/helpers/rcu.c @@ -2,12 +2,12 @@ =20 #include =20 -void rust_helper_rcu_read_lock(void) +__rust_helper void rust_helper_rcu_read_lock(void) { rcu_read_lock(); } =20 -void rust_helper_rcu_read_unlock(void) +__rust_helper void rust_helper_rcu_read_unlock(void) { rcu_read_unlock(); } --=20 2.52.0.351.gbe84eed79e-goog