Rust for Linux List
 help / color / mirror / Atom feed
* [PATCH v2 0/3] rust_binder: consolidate transaction failure prints
@ 2026-10-13 12:37 Alice Ryhl
  2026-10-13 12:37 ` [PATCH v2 1/3] rust: error: implement ZeroableOption for Error Alice Ryhl
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alice Ryhl @ 2026-10-13 12:37 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Carlos Llamas, Arve Hjønnevåg,
	Todd Kjos, Christian Brauner
  Cc: Miguel Ojeda, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Trevor Gross, Danilo Krummrich,
	Daniel Almeida, Tamir Duberstein, Alexandre Courbot,
	Onur Özkan, rust-for-linux, linux-kernel, Alice Ryhl

This series is split out from "Rate limited printing for Rust" [1] so it
can be routed through char-misc-next independently.

Patch 1 implements ZeroableOption for Error so that Option<Error> can be
stored in structs deriving Zeroable. Patch 2 updates TransactionInfo to
store Option<Error> instead of a raw i32 errno, and Patch 3 consolidates
the transaction failure prints into a single debug print.

Link: https://lore.kernel.org/r/20261007-pr-ratelimited-v6-0-f14accd4ea3b@google.com [1]

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
---
Changes in v2:
- Rebase on char-misc-next.
- Expand SAFETY comment on ZeroableOption for Error.
- Pick up Acked-by tag.
- Link to v1: https://lore.kernel.org/r/20261007-binder-consolidate-txn-prints-v1-0-c1032ed3221f@google.com

---
Alice Ryhl (3):
      rust: error: implement ZeroableOption for Error
      rust_binder: store Option<Error> in TransactionInfo
      rust_binder: consolidate transaction failure prints

 drivers/android/binder/error.rs       |  4 --
 drivers/android/binder/thread.rs      | 78 +++++++++++++++--------------------
 drivers/android/binder/transaction.rs | 28 ++++---------
 rust/kernel/error.rs                  |  5 +++
 4 files changed, 48 insertions(+), 67 deletions(-)
---
base-commit: 79e5797d243a466138f641932f81dc69f796060c
change-id: 20261007-binder-consolidate-txn-prints-c12311ee8f49

Best regards,
-- 
Alice Ryhl <aliceryhl@google.com>


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

end of thread, other threads:[~2026-10-13 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13 12:37 [PATCH v2 0/3] rust_binder: consolidate transaction failure prints Alice Ryhl
2026-10-13 12:37 ` [PATCH v2 1/3] rust: error: implement ZeroableOption for Error Alice Ryhl
2026-10-13 12:44   ` Miguel Ojeda
2026-10-13 15:40     ` Greg Kroah-Hartman
2026-10-13 12:37 ` [PATCH v2 2/3] rust_binder: store Option<Error> in TransactionInfo Alice Ryhl
2026-10-13 12:37 ` [PATCH v2 3/3] rust_binder: consolidate transaction failure prints Alice Ryhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox