From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 D898D2550CD; Fri, 2 May 2025 16:56:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746204998; cv=none; b=e9kTqUyc5WEQ4k4zvegPoOAO+1pem1y1V9iddm2d8hoHqO/c7J1+WNcDWKwiS3/A6CO8ltlCn9vHt/RUbqZ3Eg+0o5LkGCXMZEmFWzacXU/H55LwD6y9dDNULU/Pd+2iOVd2B45mHSHN0+n0+NxUZkvA5ctK/RvAWnsz2+znHl0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746204998; c=relaxed/simple; bh=GBHups5I+gIu6whqi8BvCYhA5MweTY00AdsyfZPYn9w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oOdoy6tOpo5nUx/GSQUvVm11WkkwIu2pJYxuEuZab0LXLR7YtAJmcTPfncgASgsmBlvbUdSiPd1WonTaEOM2UQr4zrBmigvZZWvK4O7FS1l9x4ppwUblSp1e5MUNxrG2/TLx8uFc+XI6gSrBk58/smsosCRAPzNcYJgKUqACfkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nBkKfka6; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nBkKfka6" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-736b0c68092so2229406b3a.0; Fri, 02 May 2025 09:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746204996; x=1746809796; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FI9or1Ma4PHqswRmQGj0F/KO6MGilj/TeQYw7Kc/iS0=; b=nBkKfka6R8It4tcbyf/6SY/t9U1jo4m3YGneeJ0fQ4UjXFPtN1jc2qqfWVdBDf2h12 v5Hg86M0105SW2h2sLIbz8XywYX77KbryDrCFpvYJMIxZr9wLIyvWsoqpv/LSb1jpoQF 0MIWEJmOqDANLLs6r/XTRSIkeH4Dov8yzgw+zvi16kF3orVHejK7ineYGqLvSfVnewWd UJnr/BWN1wdXQh1AaaEtmmmlhLfRYzOUI+odZV3V3P6RCratQlYPc+BmcItZDt2/QkO9 YPFsBuJq9TKtbwZ+2n0XdWwB02llh+kqdwY5MX4xeRKAWkeGHK/VqLk9SYI2dlFYsYAe iSMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746204996; x=1746809796; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FI9or1Ma4PHqswRmQGj0F/KO6MGilj/TeQYw7Kc/iS0=; b=GeKpzR8JuAVgLIjitNl1jXJmkL0mzw89HfAo3WqGNBAZdtgCT0UhznvScFuAN02phz lPXjFuMmzJhH1+m2suP7jtE6fsVDe8zlfH89cGAOmid6n8Xd4qND4D1eIREXdlV54nMl OwR6vH2eT4U8rhVlxKhAo6s2tOZ1q3V0hxwgz+hD9bDqHtTqOEbVtfUvtfpiT2FU3toA EEM0CRuFWzUlUiJSbMlI1SRvCdID9qKkuwS8HYQoyTq7NpNbcFVmzzF4rhQyLHxgetSO RqWlPvD9vdyrDcLq2xa7xgppnyseeqaY8CC171EDphOmjLEl5Lj+yU7TQXWA+39c4/1o WoXQ== X-Forwarded-Encrypted: i=1; AJvYcCUF8oKJEkO9zdRim+n1LfXp8mR36UUACvILTTdmHdLQDUB7DTjB46iY8VI7N+pfbvrDTwvHsUaNjeDFtYWSQ9o=@vger.kernel.org, AJvYcCWKDPgTT6vm8YUSADhyQl8AXsq3C9lPPFIFTHtoCjSgwpE3N6SGP1SVC1TYy77U2TqcotM5sRjH8fI5KUI3@vger.kernel.org, AJvYcCXQPgv6DjBn4L03BsCj07c0ww61bjCyD+vKEvtpmCnTRHzc+ASE/fzhnOwX84WoUIipksnjK8txT40=@vger.kernel.org, AJvYcCXqQkUzxFboL2liArtNhcu4TF/APP6zU8Nmq+Vfeob25PFtZ4XFez8dRSCKrRkurW7F5TCKIm3BUlw=@vger.kernel.org X-Gm-Message-State: AOJu0Yxj+SBNxJ2y7XQn8HbK2GNMSHhj79MccDisY9CInyH31XjH6eMb gaAAsDw0fk3vzDfDLgAH2CJBYRLOiSA6PmjpnsGgPJrFqgfLcrps X-Gm-Gg: ASbGnctgTvq86Qc/Oa6BRptfjpz9yKrqOr1lfoDvI4f9SGeyQQQaKTs/OYM86iqKxfS btFXCHn4o19AscbaEDzxv3KYAhHz/GbOZUVz/uo5lsdUeqUkmAg/+wOqmdKeZKBWybQV/v1PKGz q0/eU7w9bsMdeecStl881xFnvNXghMgfqibQUMu2yN9r/gAWVbW5S3fiynOecKd+Cnskf/tkWAL frWMoRNLsNri6v2SuGgRK8nGgmzT/FAfn3h6ULCswjFWtQkV4I8PX0Sj5uGl7JnWdT5t5eLg6oj lPOLOretaluROBA6Pi2ftQBkBUp51Wu74TfacH/W X-Google-Smtp-Source: AGHT+IFADEip8AGWv+PRev2ND75le8BrTNt8vAuOXih7lmn25wXP4jLWsoV3+kT0W3JJXCuQ/tT5qQ== X-Received: by 2002:a05:6a00:ab86:b0:736:ab1d:83c4 with SMTP id d2e1a72fcca58-740587626dbmr5168007b3a.0.1746204996089; Fri, 02 May 2025 09:56:36 -0700 (PDT) Received: from localhost ([216.228.127.130]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-74058d7a47esm1825655b3a.29.2025.05.02.09.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 May 2025 09:56:35 -0700 (PDT) Date: Fri, 2 May 2025 12:56:33 -0400 From: Yury Norov To: Viresh Kumar Cc: "Rafael J. Wysocki" , Miguel Ojeda , Danilo Krummrich , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , linux-pm@vger.kernel.org, Vincent Guittot , Stephen Boyd , Nishanth Menon , rust-for-linux@vger.kernel.org, Manos Pitsidianakis , Alex =?iso-8859-1?Q?Benn=E9e?= , Joakim Bech , Rob Herring , Burak Emir , Rasmus Villemoes , Russell King , linux-clk@vger.kernel.org, Michael Turquette , linux-kernel@vger.kernel.org Subject: Re: [PATCH V11 01/15] rust: cpumask: Add few more helpers Message-ID: References: <944ee57ad1b190f6975c739802b4d93166bd00c5.1745218975.git.viresh.kumar@linaro.org> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <944ee57ad1b190f6975c739802b4d93166bd00c5.1745218975.git.viresh.kumar@linaro.org> On Mon, Apr 21, 2025 at 12:52:08PM +0530, Viresh Kumar wrote: > Add few more cpumask helpers that are required by the Rust abstraction. > > Signed-off-by: Viresh Kumar Acked-by: Yury Norov [NVIDIA] > --- > rust/helpers/cpumask.c | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/rust/helpers/cpumask.c b/rust/helpers/cpumask.c > index 2d380a86c34a..eb10598a0242 100644 > --- a/rust/helpers/cpumask.c > +++ b/rust/helpers/cpumask.c > @@ -7,16 +7,41 @@ void rust_helper_cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) > cpumask_set_cpu(cpu, dstp); > } > > +void rust_helper___cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) > +{ > + __cpumask_set_cpu(cpu, dstp); > +} > + > void rust_helper_cpumask_clear_cpu(int cpu, struct cpumask *dstp) > { > cpumask_clear_cpu(cpu, dstp); > } > > +void rust_helper___cpumask_clear_cpu(int cpu, struct cpumask *dstp) > +{ > + __cpumask_clear_cpu(cpu, dstp); > +} > + > +bool rust_helper_cpumask_test_cpu(int cpu, struct cpumask *srcp) > +{ > + return cpumask_test_cpu(cpu, srcp); > +} > + > void rust_helper_cpumask_setall(struct cpumask *dstp) > { > cpumask_setall(dstp); > } > > +bool rust_helper_cpumask_empty(struct cpumask *srcp) > +{ > + return cpumask_empty(srcp); > +} > + > +bool rust_helper_cpumask_full(struct cpumask *srcp) > +{ > + return cpumask_full(srcp); > +} > + > unsigned int rust_helper_cpumask_weight(struct cpumask *srcp) > { > return cpumask_weight(srcp); > -- > 2.31.1.272.g89b43f80a514