From nobody Sun Feb 8 12:57:54 2026 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (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 1E92336CE09 for ; Wed, 17 Dec 2025 13:51:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765979513; cv=none; b=ggmhVBPThgs/oQ1s5+c0YTtLAJd9NGjgmQ7m30UyZVVeAEqAzY3qzP3W8ttmaUe+M0X/vhDEq5rgzBgby/zGi3WuVHvCMhfQXVXRnVzOIbDI8h0Z7WcfpOgBwKrt6h8lchJDq+muXo7LhyyTMcRry4+XCC/YuIYXWGIGZmK1YGI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765979513; c=relaxed/simple; bh=b9tLxmTlkPsgshvAK0Im+EAXHIzMVLNaqysHM/Vq8r4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=srdTPO6gTR2z9qIFnRhfkm38jRTlvYqoCUr3eDs9KXMozWmcPMhhNgGYXgYi58J7371DGcL4octUmfReptIDUDRDq2XN2tYV47qw1BigPb/cHvLYTsXx0ta7FBqvz5ZpqZJJBZXg3Gb4Pw9mpKx3PKbXqtfkHz+CXSA/Ko7Dwfk= 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=Q+XUmJ7a; arc=none smtp.client-ip=209.85.128.74 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="Q+XUmJ7a" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4776079ada3so48164555e9.1 for ; Wed, 17 Dec 2025 05:51:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1765979510; x=1766584310; 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=l2tA9BvGJM/MXAqqEEc2vFp7vn6Bv4CPAQxGvvw/yM8=; b=Q+XUmJ7aeh/nzWz5WfSAfO0w+j7WAEFf0ezWd/49X7nZFHQZueioHHCmshgU6QHMhT u5cXzg51g2tPacTt67d9TvRMoCYkwZh5OR3l6s4pO/KgtDGPz1jolG8lS1rX+l6ZAOwV kFc+nkze4C9PD17NriX8L+TgCJovBG6pgvdC201DkYzV7bEZUZrJ+xLU6e4CPumQqvu2 cpmY4U1ytUObZ0ES19W7ZoYragD1gNEAJpy0JWXSdXYJRB1xDL3/VKYgYrAYR9A4IzMy 6Es7QX46ssms9efpZEYsqUQX8SltTNCwxxRkJZt2Ihlhqt5GxJ1g+d/cB6aeUiIGcmpG Y7Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765979510; x=1766584310; 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=l2tA9BvGJM/MXAqqEEc2vFp7vn6Bv4CPAQxGvvw/yM8=; b=fiDPDOtMrbNKcWRLgfVDBaicNPL1GsWGdJSyU5lSymkup8Mb1HOV7AS+TrPITojk/0 twcaCbCYFhmM3r1tFGs/d5uHw8B8nvhV2MhDTAQOSOGujGQmS9Azu0AWgU+dJr1j8Ikt 3ze2pjyGgGcwnzIwIF+4QjGvpTSeIuAwtgX/uMdOkg6rrLUW8TH2Q8Cgjot6kVRARbJ+ taFJEXVT0HjUzYip4JsAmDUTJxAKHL6mj16AzDiqNAhJkNlcIzW1qHvMcQdoWBQkLvoV re+bCQ0uQflhs27+yvoLmPaBeBptqE8GFOtW05+20g0BUHIO3VLN5j2xpSBLC+2sOxZ+ iBYg== X-Forwarded-Encrypted: i=1; AJvYcCWJdt0VvF/WKE2WGR/1WdxSXAe+975woyBS0mvmk98+TXW+FnQGNpKVSlMuiywWXie5G5MUGzxYcDjDGz8=@vger.kernel.org X-Gm-Message-State: AOJu0YxYy8LlTjLmjJiJ4qICt/siL7Gx/j+u/v39TUIrNJVzjT8xFx0H 0zaeFirztIxdQ71KIf+WlSx0jD6Lxrn/KOfBjy6wuSFh6pohqLMq61dJQEofke+EWYG/3MIrm8s lAdbXvqPSsC1DYlhBnA== X-Google-Smtp-Source: AGHT+IFPVDyOX0LkIVlD6oMuakoX3YifvaEbSUmOSHDAI6aH226P19wCyhK4tsWgAf+69nYIAMZYUMZmpEkeUvM= X-Received: from wrbgx27.prod.google.com ([2002:a05:6000:471b:b0:430:f96d:ccfa]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:8115:b0:477:a36f:1a57 with SMTP id 5b1f17b1804b1-47a8f8a9c26mr182934425e9.3.1765979510506; Wed, 17 Dec 2025 05:51:50 -0800 (PST) Date: Wed, 17 Dec 2025 13:51:29 +0000 In-Reply-To: <20251217135131.153557-1-aliceryhl@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251217135131.153557-1-aliceryhl@google.com> X-Developer-Key: i=aliceryhl@google.com; a=openpgp; fpr=49F6C1FAA74960F43A5B86A1EE7A392FDE96209F X-Developer-Signature: v=1; a=openpgp-sha256; l=663; i=aliceryhl@google.com; h=from:subject; bh=b9tLxmTlkPsgshvAK0Im+EAXHIzMVLNaqysHM/Vq8r4=; b=owEBbQKS/ZANAwAKAQRYvu5YxjlGAcsmYgBpQrU9HNPCrr4bYOpVk0CqroewBViv8WqtWXtFt tSBtYvc4R6JAjMEAAEKAB0WIQSDkqKUTWQHCvFIvbIEWL7uWMY5RgUCaUK1PQAKCRAEWL7uWMY5 RtVgD/4xh++jJ7tUA+8RQpTwyYGllZCtDFvYSEtMNZWT7+Z5/pJjVLSsye4aRH7PXB2SLLn7uM4 lfAOWnmxc0gXnARI9NCgrDjFvQwT1l5VG8KSfCYN5JOAMLBd3iluKJz4Ecjig6Mm8R+/k04+LgO 0ZcjTflsJ8gemOnCCHfHj3rCnCPWMv5tlbGp5uc9JPjI6gBHtCofyuwyAJQXG1aWNn3UkRFgNTK NTPJMomMzN6pxKSJvrYtbznkCRnN29/YWk2x+DOqsVZWyF7solvyOgnzxtZRQdI9+X7A3LFLqdr qSqFKVyY94dq0TdSVmdlZi/Olb3RGlecme2ABZDsd52IGDDrAW3/uUSR5D2jfJLgF0SSnLEX0Rr Bmx6Yba15NwuTp8Rw0l4ZcPvEY/YuhS/cTF1Vk00AwQrIIKMOm5uWZC0f1XVnwVOrpQucl8/2hM YAmo5+Q9YVmyBPbjlnR8ine2a75FoFeZ9TpqoiGfgVhoFAEe3YGrVyQUbJTRwZxN+m0gBc5nlyO edQCukF2Q3vokNAKMchRzls7u4KZHcKRk0SprWYaC+PMYplWzuQQeJ9KSNdxYaskD9jRFS28pul 0wrPWDyy/zxTvQ+VH5g3F5jR+6z8kn8JMJaEsSvqR/Xf5Zv0vN0n6FP1VEXa9QpdH1GMdgLeIZL 5U0yj4ye9e5emnw== X-Mailer: git-send-email 2.52.0.305.g3fc767764a-goog Message-ID: <20251217135131.153557-2-aliceryhl@google.com> Subject: [PATCH v2 1/3] rust: bitmap: add __rust_helper to helpers From: Alice Ryhl To: Yury Norov Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Alice Ryhl , Boqun Feng , Gary Guo Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng Reviewed-by: Gary Guo Signed-off-by: Alice Ryhl --- rust/helpers/bitmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/helpers/bitmap.c b/rust/helpers/bitmap.c index a50e2f082e47..e4e9f4361270 100644 --- a/rust/helpers/bitmap.c +++ b/rust/helpers/bitmap.c @@ -2,6 +2,7 @@ =20 #include =20 +__rust_helper void rust_helper_bitmap_copy_and_extend(unsigned long *to, const unsigned = long *from, unsigned int count, unsigned int size) { --=20 2.52.0.305.g3fc767764a-goog From nobody Sun Feb 8 12:57:54 2026 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (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 6B65F36D4E7 for ; Wed, 17 Dec 2025 13:51:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765979515; cv=none; b=DIkU/+m3je2xLrEs+Cv8XdxCmeUv8DlMXmMm44LlDif+MGf75MG6RZs3jYaWSzjN923z1q/WxprmOuGVlEySfyCG7j9jKW3jXZqoFOyf/Zjkzm3xuKj7qV4r+kCmVAdyccWZiAPoF+tcqHIosp87EDGrAJd3YBh7xx52yfJAWNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765979515; c=relaxed/simple; bh=B761p5OxnXsb+keUoJDoMwByns86/hRj6jfK8JotrGQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=HjaguPTsHc9dpeIDuoaIgT1YVGCoWhgzLOOGrbCgdF1idLnVaI+M8H6NklTvIRP9wchi/ge+p7UM53csn3J1Wg1fwvUc7cymDhyklE6+E68Jfmv6/LsYdwNWv5wZFRh6SYU39MMno5NxwqUMN9y1D9pyjr50XliBT0t9byvGG48= 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=J2ghcb4J; arc=none smtp.client-ip=209.85.128.74 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="J2ghcb4J" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-47918084ac1so53632815e9.2 for ; Wed, 17 Dec 2025 05:51:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1765979512; x=1766584312; 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=biumxMGdBMrxiqdBND90wOkUf6/zxGBG3GCOTqSkwcU=; b=J2ghcb4Jxtqu35BTbHKP/3UleTkS5JsUoJ6HneZu91FA1rGlDl7H+7lKRg0AJo+VLx JEr3Cn3uMRiOeiM7mFiB8M2Iba1Q6Z6p0wkqx/2rmAW34IwKfHvavPnMcuogSJ6+nSfE Up1DIZyggO2SqRu1HQCdrkP4XcdAqZLntp5JVsQ2Fum6n7kt+cmlh23kZKp0RctrXg/h yJnGLqeO+l8Ueisnie4KBryIOX+CSfoc7zHASGKLArf7BBVhIlwuZWNmtME9tqn9XtUU UabOjrPV3HH0CX7O/1DRB447LHy3XrkkF5zFMvjSLr1z1VRcA9BEhhdMuAPkPC2CMP1e SAQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765979512; x=1766584312; 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=biumxMGdBMrxiqdBND90wOkUf6/zxGBG3GCOTqSkwcU=; b=V9FdIahpC0Er9+HfKCLmcbA1QxYAeNv6ZiunjYmQgFsg3qKad5K/8vaELjI3MDJ67L MYZFa6cuX7FbayYCnk39eU4eQNXX8VqVjyJ2g0JWMWuZgNYPXIji1ejB6BUwcYZ8uup+ rw9CBJW7WzW2j7gENRWtCh1FXEI6uhxAjvLdeMoALLliAQPx5OyF1ZSJqlE6UxLcZ/ee urKkKcBz8V1d1B9axIIWGKjl3dLMhOozRZ8/8pwsFXWrgoAbOXs3FCvJl+cq80ugQUPp v6UgIHtRBathz5gfjJ2LZ0jttBdl31uUkaGOOoiToGswoTO0cDBn+vre8CnB/QFJElfl 4P3Q== X-Forwarded-Encrypted: i=1; AJvYcCVc3WC11EV8yeSmhIuACSIBRPdVVOzucYDd5gmbDHKT1PkMT2V+ECdRbIpL9uCGigD4fSSBbvNpBpBV1f4=@vger.kernel.org X-Gm-Message-State: AOJu0YwDqij2uGP0ws3SrAueyZGyq4Parqtw74y9IvD+9xOImAajnpSb XbRgJ+DVss7MzBCk7oMghj6XU0ft4f0oH0G4MLtbOgmw+y72R3KEJelgcPD/X7sQKYq5y/Ueosx 2LteSJ9RaqcMaEDqzgA== X-Google-Smtp-Source: AGHT+IH52jrDqLv0RJzGP7uts2IL2olm50hh8CR6OzSwjWTX69gxWZpS3iCjwaEADJZtgDOiSGfZ7jfsvmvWllU= X-Received: from wmbf4.prod.google.com ([2002:a05:600c:5944:b0:477:55d3:90d1]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:5298:b0:46e:1a5e:211 with SMTP id 5b1f17b1804b1-47bdf5f0e9dmr15855455e9.21.1765979511764; Wed, 17 Dec 2025 05:51:51 -0800 (PST) Date: Wed, 17 Dec 2025 13:51:30 +0000 In-Reply-To: <20251217135131.153557-1-aliceryhl@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251217135131.153557-1-aliceryhl@google.com> X-Developer-Key: i=aliceryhl@google.com; a=openpgp; fpr=49F6C1FAA74960F43A5B86A1EE7A392FDE96209F X-Developer-Signature: v=1; a=openpgp-sha256; l=1005; i=aliceryhl@google.com; h=from:subject; bh=B761p5OxnXsb+keUoJDoMwByns86/hRj6jfK8JotrGQ=; b=owEBbQKS/ZANAwAKAQRYvu5YxjlGAcsmYgBpQrU9CPpNf/VhaERyxTXZtsjk5JU0gnULoZ+52 ImQWuh7ASeJAjMEAAEKAB0WIQSDkqKUTWQHCvFIvbIEWL7uWMY5RgUCaUK1PQAKCRAEWL7uWMY5 RvgbEACbeOhtSwISNiLfChd6jbpyLOb6orWB1G4JJsoyV8OSvZKFu4aN31E1Z1p4LDprKFhGDtN 7cP9ld+4+rHqcXq2P8OCEbb5NdkPvrbkYm9Oy2z6LmfB2bsSEKNvRrtfeGiFW/Dfrv7Sh8sk91x DQBqBQ64KlKOrH8+pDHY5arYs//G2E+6TJjJ9HU8Nag2RaWN5cn30zCk+qTpzqLESj8IwYqHiyx rjOYP2nSygNdHmJF4KkzupkxfkRHOdXBo4PcU24ctSsJaurpT21SJgFS0jsWcd/vQiBPF879KZa rbjc8sJ7mlV9bUicp/As8XE0hdOE9vRk3WWT+Ihvp4mK9MpqeHyfh75yL1sKoAx/chZRAJWbG0b zRQfTmlyqn2HcNYwqD8kOEpRkjhttgIXEOfh9n3jG3rVISJeZYolJLCsWbI8mtH1JvyUwP/xSw7 ox6rGDmTogI7YXASb5AAK/xt+jFigQLCmc37LsBldmGGKJJ+Is1gLRlmFtVyQG944LU42CFWGYY aGuWx9kDFIvYPKHxDvXlSflLf1XqfU8FzdWTcjAbLiDBbE+hwPOD8cFw1aqHxLO2onYNMS/U774 MKhOqPlpnMDnAJF/c7nk+Q0DsdiCwwz3md4jCqLudDXEixt0l91HUpdHbT9Me7r0/mIAnOqoTbl ZPUmAnVHmxx7Qgg== X-Mailer: git-send-email 2.52.0.305.g3fc767764a-goog Message-ID: <20251217135131.153557-3-aliceryhl@google.com> Subject: [PATCH v2 2/3] rust: bitops: add __rust_helper to helpers From: Alice Ryhl To: Yury Norov Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Alice Ryhl , Boqun Feng , Gary Guo Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng Reviewed-by: Gary Guo Signed-off-by: Alice Ryhl --- rust/helpers/bitops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust/helpers/bitops.c b/rust/helpers/bitops.c index 5d0861d29d3f..f875692ead30 100644 --- a/rust/helpers/bitops.c +++ b/rust/helpers/bitops.c @@ -2,21 +2,25 @@ =20 #include =20 +__rust_helper void rust_helper___set_bit(unsigned long nr, unsigned long *addr) { __set_bit(nr, addr); } =20 +__rust_helper void rust_helper___clear_bit(unsigned long nr, unsigned long *addr) { __clear_bit(nr, addr); } =20 +__rust_helper void rust_helper_set_bit(unsigned long nr, volatile unsigned long *addr) { set_bit(nr, addr); } =20 +__rust_helper void rust_helper_clear_bit(unsigned long nr, volatile unsigned long *addr) { clear_bit(nr, addr); --=20 2.52.0.305.g3fc767764a-goog From nobody Sun Feb 8 12:57:54 2026 Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.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 BF78B36C5A4 for ; Wed, 17 Dec 2025 13:51:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.73 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765979516; cv=none; b=q+DGtrnBWeF7q+6wmP6Rp/1d0qWK/yFCjSJN/DDcV2CMs7dSuI0WO8Xt/jokfRqeW22jmnrDVT5X4+j3rHc4takYjtB4u+R537Ek2XhhClB259FUXrU3sJD9NxbkGsyxRWx/JmjZO00RehUIxZCm1ua/ovD1G0XF2nNl9H0ORm0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765979516; c=relaxed/simple; bh=fN3URxktr7sMlmGNYMdvtIIUTGkxShAPyf2ZGYbhTyM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=lMTzRH/uKpWUoZXftGYvvAcjlbV2WQTujk9fJ7ADeafxlQBBHdKzBl36xhth6Qzuvr1mq+ncgMrtXXxiSVH6QSIBh8k7luPwNOkh3Ec1Zq0GgNwesabz7xwnOnVni8SQ8W8DaBtS8d48rzgzSyBIFZdpdjsDpt8vRkuCtmBeQd8= 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=4qRFtNzQ; arc=none smtp.client-ip=209.85.221.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="4qRFtNzQ" Received: by mail-wr1-f73.google.com with SMTP id ffacd0b85a97d-430fd96b2f5so2333990f8f.3 for ; Wed, 17 Dec 2025 05:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1765979513; x=1766584313; 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=v7nIKCaeLv8zPGRJ23xmdlRZWBvdRXrT8HvbRJijbgE=; b=4qRFtNzQkZsluPbv5XIL/5plJb6ey1GNxJa1iS2spr1o56tRtITQTn4Whd2YiLUEMD vl6F8iWiSzFUhVN1rd+xq0oLlypSlqttjBtDF31AaULfpJYfW7rL+cA9Q1q4iu+k+9gF Lof26rufuGYQeu/vaPqPaBNK1rBCUozVlXavSwgSP2CQbzk5IhmuUpGC9n4KRM/Jrrhn BLQoM2itYf6uBG4bHy4WnxDvFk4hQoWEYHffrdxzKMpKoTmFgvFuZv32NtBzvxb95qiE w1Jai6kfwezM4Y/4tsVnF19TSu+cIoLkZjEyVrqf9pGimm95nd3+OA4Yz3q3wB3MYJHn f5Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765979513; x=1766584313; 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=v7nIKCaeLv8zPGRJ23xmdlRZWBvdRXrT8HvbRJijbgE=; b=v926Ejzvz6sIqP5xv5o3MHBpeKz2iEeqOMES7+SzbWFJlMxXHeUe9i3ZMsTXr5V1u3 qmm01e5NE0tpsYU2xW60fBcD77J0IS27EAkxZgpgwhZ7IqgYmFRsYrXH8HFWb11LvIJg Db3pba7nUlqrOY1h/CQsA6b+kHV2tyzKGUJKVOjuD5gJ0uK6xZC0ZQOMsi2e7NHwtMWm SGypBeWxq59/hwylofry1RLu/tVAAaicVlQArpShF7Cfy/807DUEGP03vYYtCaYcCdSj eZqJwL2LcIqj/7B16upFcgOmWKwmH5YVTvpYm9puDxbKXgqz1d4WCNFNJC6RZuV1lY9x ZqCQ== X-Forwarded-Encrypted: i=1; AJvYcCX1yBIrJmTbs4BuxgflA+9Fm910N2LWbdJ5QS9/yFLujlJBo4a3UukHxhPvsJOwCBxTRsfi16pVI6y7N4w=@vger.kernel.org X-Gm-Message-State: AOJu0Ywt5x9XErEiqoxmg6ZQQ8luPoFEMfyhiva2EVqICS1M4/C56vtl fyn8VEaX0B0bJDRSEItQZdtkRotOP4snN2fFotcAS0Ayfjt5hNRBMsQHqoN1PW4W3VCHcVPxTZo ZcQb+kLTEnPdGAnL4sg== X-Google-Smtp-Source: AGHT+IHrUtoviwwVHAj5Ot8yM3UwknGILpAoz4AmpZewpzaIh8/Du/hxu70tdxu9gL9g0Ry+OBSdhG2dH7mNOYU= X-Received: from wrd27.prod.google.com ([2002:a05:6000:4a1b:b0:430:f5d7:f015]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a5d:64e7:0:b0:430:fdc8:8bbf with SMTP id ffacd0b85a97d-430fdc88fa4mr9086454f8f.59.1765979512955; Wed, 17 Dec 2025 05:51:52 -0800 (PST) Date: Wed, 17 Dec 2025 13:51:31 +0000 In-Reply-To: <20251217135131.153557-1-aliceryhl@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251217135131.153557-1-aliceryhl@google.com> X-Developer-Key: i=aliceryhl@google.com; a=openpgp; fpr=49F6C1FAA74960F43A5B86A1EE7A392FDE96209F X-Developer-Signature: v=1; a=openpgp-sha256; l=2210; i=aliceryhl@google.com; h=from:subject; bh=fN3URxktr7sMlmGNYMdvtIIUTGkxShAPyf2ZGYbhTyM=; b=owEBbQKS/ZANAwAKAQRYvu5YxjlGAcsmYgBpQrU9BA54sfjZq4zeQBn3jsRwcxvybyULbEzwh Wg6kLnmXIaJAjMEAAEKAB0WIQSDkqKUTWQHCvFIvbIEWL7uWMY5RgUCaUK1PQAKCRAEWL7uWMY5 Rt0/D/9P0f+A+b2APxMq/wDne+m/JjXXGRj5zb2iuiOf5mkAhnD6W3g/pwJa+rlboQ89AnT21l/ lmGn6JzMJmAcX21g13wQYJmWl6OmR8qCcvhXv2TV/hQhg9KdaIfJ2XlGgK3tUJafd9QzpabRLRG GfwGS3E5M4H/zw8LK33cLA9Pn+obH6b8PxODSy/qoYywPEYv7dJ0HhsJEFNgwezqKyEh4wNt8cl M02vF/hLjTHI0NPoPzuCUp7BcJ09oQVKnyB1g7hsek+/AWsMcn11nY06g5dZtRla0EeyGMBugCD lHagu/ZdTyeDUa8dF5isyOfbAnxYf7r0mBszMaj4/1n+FMZzdL7EAeOBOr6S65GeJpQcAE3V4gt tI4zKhYzBqlER2tHx5bN8pU45KuzU477wRDbnTnfPVa+r556QxZ5GTFvy0qKLoPB964c7mk1H9p rVa5EMc06DYl3AqcgtXtfQmWRcU+s/gfgV5mLh0TgrAhEi8hOG1pA6KJoSQNrlS3HmFM+MTyeTK lqldwUNCg931PodP5ryDalnx5GCwtcPROeWCozWDy+W0KrSC0f9EVLDi9ajv0fXQqT7AZ/v6qcJ 3G91/fRJ1Mgi9sQyFu/CVKsN5DjPWl1HozJmPRkDaSzCVE7Qe0wIVzxqBWew59DOZHSCNosHFkA dMaYK4xwWeID4FA== X-Mailer: git-send-email 2.52.0.305.g3fc767764a-goog Message-ID: <20251217135131.153557-4-aliceryhl@google.com> Subject: [PATCH v2 3/3] rust: cpumask: add __rust_helper to helpers From: Alice Ryhl To: Yury Norov Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Alice Ryhl , Boqun Feng , Gary Guo Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng Reviewed-by: Gary Guo Signed-off-by: Alice Ryhl --- rust/helpers/cpumask.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/rust/helpers/cpumask.c b/rust/helpers/cpumask.c index eb10598a0242..5deced5b975e 100644 --- a/rust/helpers/cpumask.c +++ b/rust/helpers/cpumask.c @@ -2,67 +2,80 @@ =20 #include =20 +__rust_helper void rust_helper_cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) { cpumask_set_cpu(cpu, dstp); } =20 +__rust_helper void rust_helper___cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) { __cpumask_set_cpu(cpu, dstp); } =20 +__rust_helper void rust_helper_cpumask_clear_cpu(int cpu, struct cpumask *dstp) { cpumask_clear_cpu(cpu, dstp); } =20 +__rust_helper void rust_helper___cpumask_clear_cpu(int cpu, struct cpumask *dstp) { __cpumask_clear_cpu(cpu, dstp); } =20 +__rust_helper bool rust_helper_cpumask_test_cpu(int cpu, struct cpumask *srcp) { return cpumask_test_cpu(cpu, srcp); } =20 +__rust_helper void rust_helper_cpumask_setall(struct cpumask *dstp) { cpumask_setall(dstp); } =20 +__rust_helper bool rust_helper_cpumask_empty(struct cpumask *srcp) { return cpumask_empty(srcp); } =20 +__rust_helper bool rust_helper_cpumask_full(struct cpumask *srcp) { return cpumask_full(srcp); } =20 +__rust_helper unsigned int rust_helper_cpumask_weight(struct cpumask *srcp) { return cpumask_weight(srcp); } =20 +__rust_helper void rust_helper_cpumask_copy(struct cpumask *dstp, const struct cpumask *= srcp) { cpumask_copy(dstp, srcp); } =20 +__rust_helper bool rust_helper_alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags) { return alloc_cpumask_var(mask, flags); } =20 +__rust_helper bool rust_helper_zalloc_cpumask_var(cpumask_var_t *mask, gfp_t flags) { return zalloc_cpumask_var(mask, flags); } =20 #ifndef CONFIG_CPUMASK_OFFSTACK +__rust_helper void rust_helper_free_cpumask_var(cpumask_var_t mask) { free_cpumask_var(mask); --=20 2.52.0.305.g3fc767764a-goog