From patchwork Fri Apr 11 10:55:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 880474 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 E8564238C25 for ; Fri, 11 Apr 2025 10:59:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744369145; cv=none; b=dnkgzL1vmuRhc0Rs826ypyfI8ZWQZA/TEuqlvuDfzg4YtGX1hYHlJAneHJMxAj6r0giVbfgjGx7EN5BhAGThqC/IDpp5KwUYFxb1C0dl44nbCN3MY3Z7K2ScrxWKJLRbL0mqOvFbUzqmK9Xwi4FgYfahszEWglVUxUBmcrEj7lc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744369145; c=relaxed/simple; bh=yS8zzoAb1gzolyqRZtRGFelUspFvZ1+mTbeqhW4yRic=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aLuy7npchiUQ6WPRQaQe1bEC1XkzNeO7cNMK9/DT9shlThFCYRv5G+K59UiEUkYlzQ0B8vpC8g1cwTutBo0asYnRwfY+jqXq1kUSlFs3zk4HdC1mWoFX+AbShn7euSrEfo4XvlTruPCq88CfoivpJfFbrll0UtxWcYxmXPclA78= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=s4fL1QbZ; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="s4fL1QbZ" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-736b0c68092so1544354b3a.0 for ; Fri, 11 Apr 2025 03:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744369143; x=1744973943; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=P5QmLNWlEhMlbaeU7vUP5c8vKPIyuKJozs3WjW7NYUo=; b=s4fL1QbZ88rgE2W4qUliW4BBCp0K5GqKT2wjxutfN7g3pvg0G90uCcFWg7kF2M3KK4 gbtQ9RjfrrGq+pomf5cYrAVSimECQdsT/SqA20GQSrDEQRUCfd1yZg3lPfm19cARug06 m1Sg9hRV3eZyMIT4QOjlIir4OoZtWstb60/KjKcp3QL4UCk2ErJ30SWrrcJwAY5on+Fd iIaVakybeOZrF3bps/shhUUl5WZFYq5c/U/P+OkF+7UcFmJGG+VNezjpKieRhlukOCzY eMl/EtLbXfOC5wG6fotO3H5jDFtePU8nCeN9Hqrqu/Xg38EXOOK4JvgL7vUSFvKOwOz5 te1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744369143; x=1744973943; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P5QmLNWlEhMlbaeU7vUP5c8vKPIyuKJozs3WjW7NYUo=; b=QIf0liR2ney1mZYVAav3/OwFtiXqOHsVjdH6CBlAqQBwMcbNDCyd5YzL9mYF62SfpW fd1dbEvDc5l6aT9eO9bQvTpFiS+dELKYmq42kJKxBd5OLYngZ3XyalFnIWq4HS7Ip/O+ 6HqCCSZmhbxFUJV3SZ0HAsa9fYItYZ/3/CS6+9fkDy1lfOn8TrhSH1fRLrermO8V9/gO xreL6435OFUbrzM9ypSjANS2H/sY/3JurQ15Sb+FwNxoGL3Pw6XFW3kSkE34F7iTHcom TuIlj7L14FxFbmsEI47KJ5G8ydmqKAItx7YcWhX7kYODCXYwgdNXEsUeaDU2fkwjga1Z GWKA== X-Forwarded-Encrypted: i=1; AJvYcCXjylX/i1W8RAa4RsFqG9Xulo0N7fezVZ9dYXDZ1VOLO6zZEcMJ+19XLbCf3FxWplOoHbtBUpYLLA==@vger.kernel.org X-Gm-Message-State: AOJu0Yx0/PUaDh6aAlW03BIKaiAyTtXCGJs8LWHn8Z/bnMzUpOUoLfD0 +z/Su8bT+3J61+WPTP+3fHUcQyIUCcB+DHE9MOJtZxmgBdCRdXC+eV4B2Si+yj8= X-Gm-Gg: ASbGncuoBkL1Fs3WVpCNgziZHuMyCMiDfinAaRPoSKKmS1clTwY/uCHEHlkJREeFOv2 FA9uvDYJGOEL/fwxO1BypGJA2PZ+KbG6KyqUt2+L1AP/Yo0BpGxR12XMKIYpglUQrhHK7yr1tb/ pt99aumUwciqWk9RXUXryqEQNGjFfhxaMCTZEDM5vlm7GoED89KoTXGXVQLbCABEPjbpya16MEu m5XVIy0R7eCcB2d5YzIbB8Bk42Sx7JeZAgZVKPm7YOtXB5fccFbe2vHIoUhsgleRfsLGoQ5OlRg qxq6kd84qR4oPo0Z0Bkd0xCluH+1V4QZ9EujB4M0iw== X-Google-Smtp-Source: AGHT+IE2OjzWyw13U8ckU/PhF26xnq5qyW/KpQps6B6mpDc5lX3qxmzsxgHjgW2+oCee8Ta27wiyxQ== X-Received: by 2002:a05:6a00:1486:b0:736:5e28:cfba with SMTP id d2e1a72fcca58-73bd126b973mr3107562b3a.18.1744369143132; Fri, 11 Apr 2025 03:59:03 -0700 (PDT) Received: from localhost ([122.172.83.32]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73bd2334376sm1179973b3a.165.2025.04.11.03.59.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Apr 2025 03:59:02 -0700 (PDT) From: Viresh Kumar To: "Rafael J. Wysocki" , Miguel Ojeda , Danilo Krummrich , Yury Norov , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?B?= =?utf-8?q?j=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Stephen Boyd , Nishanth Menon , rust-for-linux@vger.kernel.org, Manos Pitsidianakis , Erik Schilling , =?utf-8?q?Alex_Benn=C3=A9e?= , Joakim Bech , Rob Herring , Burak Emir , Rasmus Villemoes , Russell King , linux-clk@vger.kernel.org, Michael Turquette , linux-kernel@vger.kernel.org Subject: [PATCH V9 01/17] rust: cpumask: Use non-atomic helpers Date: Fri, 11 Apr 2025 16:25:00 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpumask Rust abstractions don't need the atomic variants of helpers for now. Use the non-atomic helpers instead. Signed-off-by: Viresh Kumar --- rust/helpers/cpumask.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/helpers/cpumask.c b/rust/helpers/cpumask.c index 2d380a86c34a..ae964cddbd41 100644 --- a/rust/helpers/cpumask.c +++ b/rust/helpers/cpumask.c @@ -2,14 +2,14 @@ #include -void rust_helper_cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) +void rust_helper___cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) { - cpumask_set_cpu(cpu, dstp); + __cpumask_set_cpu(cpu, dstp); } -void rust_helper_cpumask_clear_cpu(int cpu, struct cpumask *dstp) +void rust_helper___cpumask_clear_cpu(int cpu, struct cpumask *dstp) { - cpumask_clear_cpu(cpu, dstp); + __cpumask_clear_cpu(cpu, dstp); } void rust_helper_cpumask_setall(struct cpumask *dstp)