]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: cpumask: rename CpumaskVar::as[_mut]_ref to from_raw[_mut]
authorAlice Ryhl <aliceryhl@google.com>
Wed, 13 Aug 2025 07:54:31 +0000 (07:54 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 14 Aug 2025 04:12:46 +0000 (09:42 +0530)
commitdaad2ef99145215fac1cab196811e3e03ef8bc9f
tree3b94498fe549f154eb211c7f6124a34dc34e1f55
parente98329896b5639f8437af8ff9316f20cb50d9187
rust: cpumask: rename CpumaskVar::as[_mut]_ref to from_raw[_mut]

The prefix as_* shouldn't be used for constructors. For further
motivation, see commit 2f5606afa4c2 ("device: rust: rename
Device::as_ref() to Device::from_raw()").

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Reviewed-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
rust/kernel/cpufreq.rs
rust/kernel/cpumask.rs