Re: [PATCH V9 01/17] rust: cpumask: Use non-atomic helpers
From: Yury Norov
Date: Fri Apr 11 2025 - 11:21:25 EST
On Fri, Apr 11, 2025 at 04:25:00PM +0530, Viresh Kumar wrote:
> 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);
> }
Please just add non-atomic helpers after atomic ones.