From: Miguel Ojeda <ojeda@kernel.org>
To: Mark Brown <broonie@kernel.org>,
Dave Jiang <dave.jiang@intel.com>,
Jason Gunthorpe <jgg@nvidia.com>,
Saeed Mahameed <saeedm@nvidia.com>, Zhi Wang <zhiw@nvidia.com>,
Benno Lossin <lossin@kernel.org>, Gary Guo <gary@garyguo.net>,
Miguel Ojeda <ojeda@kernel.org>
Cc: 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: [PATCH -next] rust: fwctl: replace `__pinned_init` with `raw_try_init`
Date: Tue, 18 Aug 2026 12:53:50 +0200 [thread overview]
Message-ID: <20260818105350.361218-1-ojeda@kernel.org> (raw)
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:
error[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>`
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
rust/kernel/fwctl.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/fwctl.rs b/rust/kernel/fwctl.rs
index e6a8513a47d0..f29244fb0d1d 100644
--- a/rust/kernel/fwctl.rs
+++ b/rust/kernel/fwctl.rs
@@ -462,7 +462,7 @@ impl<T: Operations> VTable<T> {
// `uctx_size`.
unsafe {
device.with_registration_data(|device, reg_data| {
- match T::open(device, reg_data).__pinned_init(uctx_ptr) {
+ match pin_init::raw_try_init(uctx_ptr, T::open(device, reg_data)) {
Ok(()) => 0,
Err(e) => e.to_errno(),
}
base-commit: e6664f2b33db9b6811eb4cec109f06cb2b4f458d
--
2.55.0
next reply other threads:[~2026-08-18 10:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 10:53 Miguel Ojeda [this message]
2026-08-18 12:55 ` [PATCH -next] rust: fwctl: replace `__pinned_init` with `raw_try_init` Jason Gunthorpe
2026-08-18 13:11 ` Gary Guo
2026-08-18 13:20 ` Jason Gunthorpe
2026-08-18 13:40 ` Gary Guo
2026-08-18 14:16 ` Mark Brown
2026-08-18 14:23 ` Jason Gunthorpe
2026-08-18 14:30 ` Danilo Krummrich
2026-08-18 14:44 ` Mark Brown
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=20260818105350.361218-1-ojeda@kernel.org \
--to=ojeda@kernel.org \
--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=gary@garyguo.net \
--cc=jgg@nvidia.com \
--cc=jic23@kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=lossin@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox