[PATCH v2 0/3] rust_binder: consolidate transaction failure prints

From: Alice Ryhl

Date: Tue Oct 13 2026 - 10:06:06 EST


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@xxxxxxxxxx [1]

Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
---
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@xxxxxxxxxx

---
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@xxxxxxxxxx>