[PATCH V9 01/17] rust: cpumask: Use non-atomic helpers

From: Viresh Kumar
Date: Fri Apr 11 2025 - 07:00:45 EST


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 <viresh.kumar@xxxxxxxxxx>
---
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 <linux/cpumask.h>

-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)
--
2.31.1.272.g89b43f80a514