* Re: [GIT PULL] pin-init changes for v7.3-rc1 [not found] <20260805190012.2934907-1-gary@kernel.org> @ 2026-08-06 17:01 ` Miguel Ojeda 2026-08-06 17:05 ` Mark Brown 2026-08-06 18:19 ` Gary Guo 0 siblings, 2 replies; 8+ messages in thread From: Miguel Ojeda @ 2026-08-06 17:01 UTC (permalink / raw) To: gary, Mark Brown Cc: linux-next, a.hindborg, acourbot, aliceryhl, bjorn3_gh, boqun, dakr, daniel.almeida, gary, lossin, ojeda, rust-for-linux, tamird, tmgross, work On Wed, 05 Aug 2026 20:00:07 +0100 Gary Guo <gary@kernel.org> wrote: > > Still more of refactors this cycle and not much feature updates. Tuple struct > still doesn't made it as there are some complexity related to `#[cfg]`s, but > the cfg-related internal refactoring are picked so hopefully we can land it the > next one. > > I did a late rebase today to rename the API based on Benno's feedback. It does > made it into today's linux-next (2026-08-05). Feel free to wait for a few more > rounds before pulling if you see fit. Thanks Gary -- we will need this on the merge commit in linux-next due to the changes from driver-core-next (Cc'ing Mark): diff --git a/rust/kernel/serdev.rs b/rust/kernel/serdev.rs index c0cd24481ee3..a4927452016e 100644 --- a/rust/kernel/serdev.rs +++ b/rust/kernel/serdev.rs @@ -197,7 +197,7 @@ extern "C" fn probe_callback(sdev: *mut bindings::serdev_device) -> kernel::ffi: // SAFETY: // - `driver.as_mut_ptr()` is a valid pointer to uninitialized data. // - `private_data.driver` is pinned. - let result = unsafe { data.__pinned_init(driver.as_mut_ptr()) }; + let result = unsafe { pin_init::raw_try_init(driver.as_mut_ptr(), data) }; *active = result.is_ok(); Cheers, Miguel ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [GIT PULL] pin-init changes for v7.3-rc1 2026-08-06 17:01 ` [GIT PULL] pin-init changes for v7.3-rc1 Miguel Ojeda @ 2026-08-06 17:05 ` Mark Brown 2026-08-06 17:09 ` Miguel Ojeda 2026-08-06 18:19 ` Gary Guo 1 sibling, 1 reply; 8+ messages in thread From: Mark Brown @ 2026-08-06 17:05 UTC (permalink / raw) To: Miguel Ojeda Cc: gary, linux-next, a.hindborg, acourbot, aliceryhl, bjorn3_gh, boqun, dakr, daniel.almeida, gary, lossin, rust-for-linux, tamird, tmgross, work [-- Attachment #1: Type: text/plain, Size: 910 bytes --] On Thu, Aug 06, 2026 at 07:01:01PM +0200, Miguel Ojeda wrote: > Thanks Gary -- we will need this on the merge commit in linux-next due > to the changes from driver-core-next (Cc'ing Mark): The merge commit for what? > > diff --git a/rust/kernel/serdev.rs b/rust/kernel/serdev.rs > index c0cd24481ee3..a4927452016e 100644 > --- a/rust/kernel/serdev.rs > +++ b/rust/kernel/serdev.rs > @@ -197,7 +197,7 @@ extern "C" fn probe_callback(sdev: *mut bindings::serdev_device) -> kernel::ffi: > // SAFETY: > // - `driver.as_mut_ptr()` is a valid pointer to uninitialized data. > // - `private_data.driver` is pinned. > - let result = unsafe { data.__pinned_init(driver.as_mut_ptr()) }; > + let result = unsafe { pin_init::raw_try_init(driver.as_mut_ptr(), data) }; > > *active = result.is_ok(); > > Cheers, > Miguel [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] pin-init changes for v7.3-rc1 2026-08-06 17:05 ` Mark Brown @ 2026-08-06 17:09 ` Miguel Ojeda 2026-08-06 17:22 ` Mark Brown 0 siblings, 1 reply; 8+ messages in thread From: Miguel Ojeda @ 2026-08-06 17:09 UTC (permalink / raw) To: Mark Brown Cc: Miguel Ojeda, gary, linux-next, a.hindborg, acourbot, aliceryhl, bjorn3_gh, boqun, dakr, daniel.almeida, gary, lossin, rust-for-linux, tamird, tmgross, work On Thu, Aug 6, 2026 at 7:05 PM Mark Brown <broonie@kernel.org> wrote: > > The merge commit for what? I think you merge driver-core-next after the rust-next/pin-init ones, so I assume in the driver-core-next one, right? Cheers, Miguel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] pin-init changes for v7.3-rc1 2026-08-06 17:09 ` Miguel Ojeda @ 2026-08-06 17:22 ` Mark Brown 2026-08-06 17:53 ` Miguel Ojeda 0 siblings, 1 reply; 8+ messages in thread From: Mark Brown @ 2026-08-06 17:22 UTC (permalink / raw) To: Miguel Ojeda Cc: Miguel Ojeda, gary, linux-next, a.hindborg, acourbot, aliceryhl, bjorn3_gh, boqun, dakr, daniel.almeida, gary, lossin, rust-for-linux, tamird, tmgross, work [-- Attachment #1: Type: text/plain, Size: 306 bytes --] On Thu, Aug 06, 2026 at 07:09:58PM +0200, Miguel Ojeda wrote: > On Thu, Aug 6, 2026 at 7:05 PM Mark Brown <broonie@kernel.org> wrote: > > The merge commit for what? > I think you merge driver-core-next after the rust-next/pin-init ones, > so I assume in the driver-core-next one, right? Yes. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] pin-init changes for v7.3-rc1 2026-08-06 17:22 ` Mark Brown @ 2026-08-06 17:53 ` Miguel Ojeda 2026-08-06 18:21 ` Mark Brown 0 siblings, 1 reply; 8+ messages in thread From: Miguel Ojeda @ 2026-08-06 17:53 UTC (permalink / raw) To: Mark Brown Cc: Miguel Ojeda, gary, linux-next, a.hindborg, acourbot, aliceryhl, bjorn3_gh, boqun, dakr, daniel.almeida, gary, lossin, rust-for-linux, tamird, tmgross, work On Thu, Aug 6, 2026 at 7:22 PM Mark Brown <broonie@kernel.org> wrote: > > Yes. Thanks! (Please let me know if you prefer a proper patch etc., of course) Cheers, Miguel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] pin-init changes for v7.3-rc1 2026-08-06 17:53 ` Miguel Ojeda @ 2026-08-06 18:21 ` Mark Brown 2026-08-07 7:51 ` Miguel Ojeda 0 siblings, 1 reply; 8+ messages in thread From: Mark Brown @ 2026-08-06 18:21 UTC (permalink / raw) To: Miguel Ojeda Cc: Miguel Ojeda, gary, linux-next, a.hindborg, acourbot, aliceryhl, bjorn3_gh, boqun, dakr, daniel.almeida, gary, lossin, rust-for-linux, tamird, tmgross, work [-- Attachment #1: Type: text/plain, Size: 406 bytes --] On Thu, Aug 06, 2026 at 07:53:41PM +0200, Miguel Ojeda wrote: > (Please let me know if you prefer a proper patch etc., of course) In general that's going to be easier and more reliable than copying me into the middle of a thread with a patch buried in the middle of it, there's a chance that if a subject line isn't obviously relevant I might just drop an email unread. I get copies on *lots* of stuff. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] pin-init changes for v7.3-rc1 2026-08-06 18:21 ` Mark Brown @ 2026-08-07 7:51 ` Miguel Ojeda 0 siblings, 0 replies; 8+ messages in thread From: Miguel Ojeda @ 2026-08-07 7:51 UTC (permalink / raw) To: Mark Brown Cc: Miguel Ojeda, gary, linux-next, a.hindborg, acourbot, aliceryhl, bjorn3_gh, boqun, dakr, daniel.almeida, gary, lossin, rust-for-linux, tamird, tmgross, work On Thu, Aug 6, 2026 at 8:21 PM Mark Brown <broonie@kernel.org> wrote: > > In general that's going to be easier and more reliable than copying me > into the middle of a thread with a patch buried in the middle of it, > there's a chance that if a subject line isn't obviously relevant I might > just drop an email unread. I get copies on *lots* of stuff. Yeah, I can imagine -- sent now: https://lore.kernel.org/linux-next/20260807074729.108159-1-ojeda@kernel.org/ Thanks! (I think you may want `-next` inside the brackets -- I can do that) Cheers, Miguel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] pin-init changes for v7.3-rc1 2026-08-06 17:01 ` [GIT PULL] pin-init changes for v7.3-rc1 Miguel Ojeda 2026-08-06 17:05 ` Mark Brown @ 2026-08-06 18:19 ` Gary Guo 1 sibling, 0 replies; 8+ messages in thread From: Gary Guo @ 2026-08-06 18:19 UTC (permalink / raw) To: Miguel Ojeda, gary, Mark Brown Cc: linux-next, a.hindborg, acourbot, aliceryhl, bjorn3_gh, boqun, dakr, daniel.almeida, gary, lossin, rust-for-linux, tamird, tmgross, work On Thu Aug 6, 2026 at 6:01 PM BST, Miguel Ojeda wrote: > On Wed, 05 Aug 2026 20:00:07 +0100 Gary Guo <gary@kernel.org> wrote: >> >> Still more of refactors this cycle and not much feature updates. Tuple struct >> still doesn't made it as there are some complexity related to `#[cfg]`s, but >> the cfg-related internal refactoring are picked so hopefully we can land it the >> next one. >> >> I did a late rebase today to rename the API based on Benno's feedback. It does >> made it into today's linux-next (2026-08-05). Feel free to wait for a few more >> rounds before pulling if you see fit. > > Thanks Gary -- we will need this on the merge commit in linux-next due > to the changes from driver-core-next (Cc'ing Mark): > > diff --git a/rust/kernel/serdev.rs b/rust/kernel/serdev.rs > index c0cd24481ee3..a4927452016e 100644 > --- a/rust/kernel/serdev.rs > +++ b/rust/kernel/serdev.rs > @@ -197,7 +197,7 @@ extern "C" fn probe_callback(sdev: *mut bindings::serdev_device) -> kernel::ffi: > // SAFETY: > // - `driver.as_mut_ptr()` is a valid pointer to uninitialized data. > // - `private_data.driver` is pinned. > - let result = unsafe { data.__pinned_init(driver.as_mut_ptr()) }; > + let result = unsafe { pin_init::raw_try_init(driver.as_mut_ptr(), data) }; > > *active = result.is_ok(); > > Cheers, > Miguel Thanks Miguel, the semantic conflict resolution looks correct to me. Best, Gary ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-08-07 7:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260805190012.2934907-1-gary@kernel.org>
2026-08-06 17:01 ` [GIT PULL] pin-init changes for v7.3-rc1 Miguel Ojeda
2026-08-06 17:05 ` Mark Brown
2026-08-06 17:09 ` Miguel Ojeda
2026-08-06 17:22 ` Mark Brown
2026-08-06 17:53 ` Miguel Ojeda
2026-08-06 18:21 ` Mark Brown
2026-08-07 7:51 ` Miguel Ojeda
2026-08-06 18:19 ` Gary Guo
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox