]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust_binder: override crate name to rust_binder
authorAlice Ryhl <aliceryhl@google.com>
Thu, 2 Apr 2026 10:55:34 +0000 (10:55 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Fri, 3 Apr 2026 09:57:35 +0000 (11:57 +0200)
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@google.com>
Acked-by: Gary Guo <gary@garyguo.net>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20260402-binder-crate-name-v4-2-ec3919b87909@google.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
drivers/android/binder/rust_binder_main.rs

index aa5f2a75adb47eeaa76998886196ce51222e363c..85a15dd40beccb984d7c420d3c9f1cde291c568a 100644 (file)
@@ -3,6 +3,8 @@
 // Copyright (C) 2025 Google LLC.
 
 //! Binder -- the Android IPC mechanism.
+
+#![crate_name = "rust_binder"]
 #![recursion_limit = "256"]
 #![allow(
     clippy::as_underscore,