Re: [GIT PULL] pin-init changes for v7.3-rc1

Mark Brown <[email protected]>
Newsgroups org.kernel.vger.linux-next,org.kernel.vger.rust-for-linux
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmp0vuEACgkQJNaLcl1U
h9DJVAf+PbjrZ35QnhyTpbI2uRfb2QUwsZGKmI8+7qjfJatSK3gFoRVmOP6h/rxG
CKmFIZeVov4CRnf0CJr1uZF0JymPeXU6L0vbYFYZt7SJgr++jYkakvz9cGHYHHGU
+p7QqMDXG9ynH7NDAHITJFX133RCPC6L5d3Ro2pY4t4G9k6bFWiMwFb9bbSsb8rb
8a5LkxPsJaMmyI/A5Q2EEbEqXc6eTtiUZuQrzbEt1xZG8NKusZftPC2X5l1y4CAS
xWm0k3N0GB3goE247syoj/r5SZ+oyV0RTruvvt3+/ZddCecI5S+hh6/oXzFnPo6a
Sgn5M6QEYCh45BssPv8fG4/6buEgYg==
=wn1A
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.