From nobody Mon Feb 9 15:09:19 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