]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: cpumask: rename methods of Cpumask for clarity and consistency
authorYilin Chen <1479826151@qq.com>
Mon, 12 Jan 2026 08:00:47 +0000 (16:00 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 27 Jan 2026 05:51:23 +0000 (11:21 +0530)
commit11af6e102d31433e3084d6d6cdb2b2fe6c23d1a9
treeba2a6056ab3c9c8f576c76fa6d500053304616e3
parent997c021abc6eb9cf7df39fa77fa5e666ad55e3a3
rust: cpumask: rename methods of Cpumask for clarity and consistency

Rename `as_ref` and `as_mut_ref` to `from_raw` and `from_raw_mut` to
align with the established naming convention for constructing types
from raw pointers in the kernel's Rust codebase.

Signed-off-by: Yilin Chen <1479826151@qq.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
rust/kernel/cpumask.rs