From: "Gary Guo" <gary@garyguo.net>
To: "Jason Gunthorpe" <jgg@nvidia.com>, "Gary Guo" <gary@garyguo.net>
Cc: "Miguel Ojeda" <ojeda@kernel.org>,
"Mark Brown" <broonie@kernel.org>,
"Dave Jiang" <dave.jiang@intel.com>,
"Saeed Mahameed" <saeedm@nvidia.com>,
"Zhi Wang" <zhiw@nvidia.com>, "Benno Lossin" <lossin@kernel.org>,
linux-next@vger.kernel.org, "Jonathan Cameron" <jic23@kernel.org>,
rust-for-linux@vger.kernel.org, "Boqun Feng" <boqun@kernel.org>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Trevor Gross" <tmgross@umich.edu>,
"Danilo Krummrich" <dakr@kernel.org>,
"Daniel Almeida" <daniel.almeida@collabora.com>,
"Tamir Duberstein" <tamird@kernel.org>,
"Alexandre Courbot" <acourbot@nvidia.com>,
"Onur Özkan" <work@onurozkan.dev>
Subject: Re: [PATCH -next] rust: fwctl: replace `__pinned_init` with `raw_try_init`
Date: Tue, 18 Aug 2026 14:40:09 +0100 [thread overview]
Message-ID: <DKS41MD2BJW6.1JDVD18WMX40T@garyguo.net> (raw)
In-Reply-To: <20260818132022.GC5432@nvidia.com>
On Tue Aug 18, 2026 at 2:20 PM BST, Jason Gunthorpe wrote:
> On Tue, Aug 18, 2026 at 02:11:57PM +0100, Gary Guo wrote:
>> On Tue Aug 18, 2026 at 1:55 PM BST, Jason Gunthorpe wrote:
>> > On Tue, Aug 18, 2026 at 12:53:50PM +0200, Miguel Ojeda wrote:
>> >> Commit
>> >>
>> >> ea7da3116015 ("rust: treewide: replace `__pinned_init` with `raw_[try_]init`")
>> >>
>> >> from the pin-init tree replaced the method before removing it, but commit
>> >>
>> >> e052daab94ee ("rust: introduce abstractions for fwctl")
>> >>
>> >> from the fwctl tree added a new use.
>> >>
>> >> Thus replace that one as well to fix this error in next-20260817:
> [E0599]: no method named `__pinned_init` found for associated type `impl pin_init::PinInit<T, error::Error>` in the current scope
>> >> --> rust/kernel/fwctl.rs:465:49
>> >> |
>> >> 465 | match T::open(device, reg_data).__pinned_init(uctx_ptr) {
>> >> | ^^^^^^^^^^^^^ method not found in `impl pin_init::PinInit<T, error::Error>`
>> >
>> > If you delete functions like this then you break everyone elses branches :|
>>
>> I'm not sure how this break everyone elses' branches? It only breaks linux-next
>> but that's why it exists in the first place, to catch tree
>> conflicts.
>
> linux-next is to catch missed things, you shouldn't use it to
> purposefully cause conflicts during the merge window..
That is an accusation that I find unacceptable. The API removal commit lands in
linux-next almost 10 days before you pick the Rust fwctl series. The conflict
between rust and fwctl tree doesn't exist in next-20260814, the last linux-next
tag before Miguel sent the PR to Linus. How come I am purposefully causing
conflicts?
> So for example introduce your new API and do some conversions, then
> remove the old API down the road after the merge window is a more
> expected work flow.
I'd happily keep the old API for an additional cycle before removing it, if I
knew that there'll be additional users. However I couldn't predict that new
users will be added late in the cycle after I sent my pull request.
Best,
Gary
next prev parent reply other threads:[~2026-08-18 13:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 10:53 [PATCH -next] rust: fwctl: replace `__pinned_init` with `raw_try_init` Miguel Ojeda
2026-08-18 12:55 ` Jason Gunthorpe
2026-08-18 13:11 ` Gary Guo
2026-08-18 13:20 ` Jason Gunthorpe
2026-08-18 13:40 ` Gary Guo [this message]
2026-08-18 14:16 ` Mark Brown
2026-08-18 14:23 ` Jason Gunthorpe
2026-08-18 20:37 ` Miguel Ojeda
2026-08-18 20:46 ` Jason Gunthorpe
2026-08-21 16:56 ` Miguel Ojeda
2026-08-18 14:30 ` Danilo Krummrich
2026-08-18 14:44 ` Mark Brown
2026-08-18 20:33 ` Miguel Ojeda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DKS41MD2BJW6.1JDVD18WMX40T@garyguo.net \
--to=gary@garyguo.net \
--cc=a.hindborg@kernel.org \
--cc=acourbot@nvidia.com \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun@kernel.org \
--cc=broonie@kernel.org \
--cc=dakr@kernel.org \
--cc=daniel.almeida@collabora.com \
--cc=dave.jiang@intel.com \
--cc=jgg@nvidia.com \
--cc=jic23@kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=saeedm@nvidia.com \
--cc=tamird@kernel.org \
--cc=tmgross@umich.edu \
--cc=work@onurozkan.dev \
--cc=zhiw@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.