rust: pin-init: rename `zeroed` to `init_zeroed`
authorBenno Lossin <lossin@kernel.org>
Fri, 23 May 2025 14:50:57 +0000 (16:50 +0200)
committerBenno Lossin <lossin@kernel.org>
Wed, 11 Jun 2025 19:13:56 +0000 (21:13 +0200)
commit101b7cf006d4b4b98652bd15dc36e63ede8f8ad8
treee41ff1eb71561024bd85b700727ef30359a29e85
parentb3b4f760ccf2d08ff3db0f094c32ce70bba2eb15
rust: pin-init: rename `zeroed` to `init_zeroed`

The name `zeroed` is a much better fit for a function that returns the
type by-value.

Link: https://github.com/Rust-for-Linux/pin-init/pull/56/commits/7dbe38682c9725405bab91dcabe9c4d8893d2f5e
[ also rename uses in `rust/kernel/init.rs` - Benno]
Link: https://lore.kernel.org/all/20250523145125.523275-2-lossin@kernel.org
[ Fix wrong replacement of `mem::zeroed` in the definition of `trait
  Zeroable`. - Benno ]
[ Also change occurrences of `zeroed` in `configfs.rs` - Benno ]
Acked-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Benno Lossin <lossin@kernel.org>
rust/kernel/configfs.rs
rust/kernel/init.rs
rust/pin-init/README.md
rust/pin-init/examples/big_struct_in_place.rs
rust/pin-init/src/lib.rs
rust/pin-init/src/macros.rs