[PATCH v2 2/2] rust_binder: override crate name to rust_binder

From: Alice Ryhl

Date: Tue Mar 10 2026 - 11:43:47 EST


The Rust Binder object file is called rust_binder_main.o because the
name rust_binder.o is used for the result of linking together
rust_binder_main.o with rust_binderfs.o and a few others.

However, the crate name is supposed to be rust_binder without a _main
suffix. Thus, override the crate name accordingly.

Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
---
drivers/android/binder/rust_binder_main.rs | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/android/binder/rust_binder_main.rs b/drivers/android/binder/rust_binder_main.rs
index aa5f2a75adb4..14162af0f5a5 100644
--- a/drivers/android/binder/rust_binder_main.rs
+++ b/drivers/android/binder/rust_binder_main.rs
@@ -2,7 +2,9 @@

// Copyright (C) 2025 Google LLC.

+#![crate_name = "rust_binder"]
//! Binder -- the Android IPC mechanism.
+
#![recursion_limit = "256"]
#![allow(
clippy::as_underscore,

--
2.53.0.473.g4a7958ca14-goog