rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] pin-init sync for v6.16
@ 2025-04-21 22:17 Benno Lossin
  2025-04-21 22:17 ` [PATCH 1/8] rust: pin-init: add `cast_[pin_]init` functions to change the initialized type Benno Lossin
                   ` (8 more replies)
  0 siblings, 9 replies; 23+ messages in thread
From: Benno Lossin @ 2025-04-21 22:17 UTC (permalink / raw)
  To: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, Danilo Krummrich
  Cc: rust-for-linux

Synchronize changes from the upstream repository for v6.16. Branch with
all commits on top can be found at [1].

I did not expect that I would synchronize a lot of changes this soon,
but here we are. They are pretty conservative, so I don't expect anyone
to object (if you do find something, of course speak up!). A short
overview of the changes:

* Make the `Zeroable` derive macro compatible with field visibility and
  add union support.
* Add a new derive macro for `Zeroable` in order to allow deriving it in
  bindgen-generated crates.
* Add the `Wrapper` trait to allow initializing wrapper types (such as
  `UnsafeCell` and `UnsafePinned`) via pin-initializers.

[1]: https://github.com/y86-dev/linux pin-init/sync

---
Cheers,
Benno

Benno Lossin (4):
  rust: pin-init: add `cast_[pin_]init` functions to change the
    initialized type
  rust: pin-init: allow `pub` fields in `derive(Zeroable)`
  rust: pin-init: allow `Zeroable` derive macro to also be applied to
    unions
  rust: pin-init: add `MaybeZeroable` derive macro

Christian Schrefl (4):
  rust: pin-init: Add the `Wrapper` trait.
  rust: pin-init: Implement `Wrapper` for `UnsafePinned` behind feature
    flag.
  rust: pin-init: Update Changelog and Readme
  rust: pin-init: Update the structural pinning link in readme.

 rust/pin-init/README.md                |   8 +-
 rust/pin-init/internal/src/lib.rs      |   5 +
 rust/pin-init/internal/src/zeroable.rs |  27 +++++-
 rust/pin-init/src/lib.rs               | 126 ++++++++++++++++++++++++-
 rust/pin-init/src/macros.rs            |  91 +++++++++++++++++-
 5 files changed, 253 insertions(+), 4 deletions(-)


base-commit: 39051adb070432b283e6c11b2b24937281b9f97f
-- 
2.48.1



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2025-05-01 16:38 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-21 22:17 [PATCH 0/8] pin-init sync for v6.16 Benno Lossin
2025-04-21 22:17 ` [PATCH 1/8] rust: pin-init: add `cast_[pin_]init` functions to change the initialized type Benno Lossin
2025-04-22  6:56   ` Christian Schrefl
2025-04-21 22:17 ` [PATCH 2/8] rust: pin-init: Add the `Wrapper` trait Benno Lossin
2025-04-22  4:44   ` Boqun Feng
2025-04-21 22:18 ` [PATCH 3/8] rust: pin-init: Implement `Wrapper` for `UnsafePinned` behind feature flag Benno Lossin
2025-04-22  9:42   ` Christian Schrefl
2025-04-22 11:21     ` Benno Lossin
2025-04-22 14:17       ` Christian Schrefl
2025-04-21 22:18 ` [PATCH 4/8] rust: pin-init: Update Changelog and Readme Benno Lossin
2025-04-21 22:18 ` [PATCH 5/8] rust: pin-init: Update the structural pinning link in readme Benno Lossin
2025-04-21 22:18 ` [PATCH 6/8] rust: pin-init: allow `pub` fields in `derive(Zeroable)` Benno Lossin
2025-04-22  4:55   ` Boqun Feng
2025-04-22  8:30     ` Benno Lossin
2025-04-22 14:14       ` Boqun Feng
2025-04-22 14:45         ` Benno Lossin
2025-04-22 21:11           ` Boqun Feng
2025-04-22 21:56             ` Benno Lossin
2025-04-21 22:18 ` [PATCH 7/8] rust: pin-init: allow `Zeroable` derive macro to also be applied to unions Benno Lossin
2025-04-21 22:18 ` [PATCH 8/8] rust: pin-init: add `MaybeZeroable` derive macro Benno Lossin
2025-04-22  4:54   ` Boqun Feng
2025-04-22  7:56     ` Benno Lossin
2025-05-01 16:38 ` [PATCH 0/8] pin-init sync for v6.16 Benno Lossin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).