From nobody Fri Apr 3 20:53:01 2026 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BED039769E for ; Thu, 2 Apr 2026 10:55:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775127345; cv=none; b=i3wbUyAKnCgCdjvwP3dNii9Nd40aJfjmds07Bp906AHM6FjJNfxzk7PP8XLNh52zE0Ul1+nVey7QPEd/uFYrPMT8+v5alJPL9LmAq9PT37YinPN+itbPlK96GGhkSHt17TdnojVksE+WCYore9WpCMZ20iDk2aHe0DZRhFyrbew= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775127345; c=relaxed/simple; bh=ZmE+nNBDaPsbEuu2aClzNp3yw85DQ527vajbOVt/NWc=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=OSMKhGiLTVprjlNfGIYcuN4tJH5oxo8y6Mkq8xkwYrDyFZLqJ8bm57BUP+1NgyDvUcRK+k8AYW0aT2IzX7xte5KpKuAek1y74gtobZ96CC10QznZz1QKCYZuixuPSyuqorVA6QB1JFtIzBAaP0O6VxCkaBA0jVc7an8AEaZVeZQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=BoNyfbqO; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="BoNyfbqO" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4837b6f6b93so11138205e9.3 for ; Thu, 02 Apr 2026 03:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1775127342; x=1775732142; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=hwjvyt+2J+K/b6fAv3oqRoboKE8A7yfR7lbsD69cb+A=; b=BoNyfbqOndDeTZpk/eHF90uXvsYY+adxxMSbZHJdpTDjFtmCZHdiHfibTulZhqpI3e HvGQDuHwvGK/lwp9OJ8mzB3kIvlFiLoxL6NHZ+LapKlcR5Eis24sw/zGqVS+CcfXHD90 AGNwov1kTd6XyVtuZCFX0s8BY7Ne/OSsxo3l7AO5WBzUg5EEzbVlimcR2N27laQWOueI HOLIgjcnJLsWJtRyPo8KVW7QnJyiHIAmGUf5lnpPmWhySBGw77PMvN5mv6VjYL89w1UP aO7vhXCylZ6OU66DXZM65gcEHfT/yHQu4XSK/jDqOQh3hLbMi3j4o53fQJUYe9t4kEX+ JFpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775127342; x=1775732142; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hwjvyt+2J+K/b6fAv3oqRoboKE8A7yfR7lbsD69cb+A=; b=YCydJUdjGc/+I7eyyT+n7Xmszzwgh5v/llGmDohgvbtKdMSIg7rUAucQM6HaNTlNOq dDXmB6L8oLw9BdsCuSk3an8r30FVRo85Ls7zPrKdCJaVT1lcVuksaUEZFyPATGVlioa6 WPVDNggJ4rXeg0bsCiZwrYHFAv4zc6ippX2qRXtTeRW5kAWiOscyc3/2+WjdpUI1m8wc o1/rQeeGYWYGVmVQAtE21dX9eV0IfbXkoVBPKEWOQkPokdkVSVw9FNAlx8XzGx7ZZ3mY mNL44o5KnygM6NpqS9a7KUENpMNM6PC6fzSai8r+mrzc7rX7SE1lnw1bFJKPdYlJxMiR ok0Q== X-Forwarded-Encrypted: i=1; AJvYcCUrGENQcsk2I4+NjTpYzJ/vvLa17anWslkgXEe0XPmT6DI6lYoERENEBxmnsfPZ9Q6f8sDERY2NH30lHes=@vger.kernel.org X-Gm-Message-State: AOJu0YxQnDyIiOifkSXhkCWTAEPiUyZSn5DL/cKAf2E3ocj2YI7AO6Fk vdS6avGkG7lMfdtBFX+V+9eGXkfU6utBwX7Mpssb47XQd1LpKn7ntbvnET6axg4fGWwxfmmgZwd PVB6Fq0VPsH7XbPyxfg== X-Received: from wmfq11.prod.google.com ([2002:a05:600c:2e4b:b0:487:237a:92a8]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:45c5:b0:485:3193:6ddb with SMTP id 5b1f17b1804b1-4888356a036mr118681095e9.3.1775127341676; Thu, 02 Apr 2026 03:55:41 -0700 (PDT) Date: Thu, 02 Apr 2026 10:55:33 +0000 In-Reply-To: <20260402-binder-crate-name-v4-0-ec3919b87909@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260402-binder-crate-name-v4-0-ec3919b87909@google.com> X-Developer-Key: i=aliceryhl@google.com; a=openpgp; fpr=49F6C1FAA74960F43A5B86A1EE7A392FDE96209F X-Developer-Signature: v=1; a=openpgp-sha256; l=5189; i=aliceryhl@google.com; h=from:subject:message-id; bh=ZmE+nNBDaPsbEuu2aClzNp3yw85DQ527vajbOVt/NWc=; b=owEBbQKS/ZANAwAKAQRYvu5YxjlGAcsmYgBpzksq9zGFqFfcKmARNBlaFTOXul2nbWi6t/nvx /FE+57niNuJAjMEAAEKAB0WIQSDkqKUTWQHCvFIvbIEWL7uWMY5RgUCac5LKgAKCRAEWL7uWMY5 Rlq9D/43O8cjJJL+NcwQVFR0o52kZKUf3OsncO66ud+LwwzUfEYJwMdxA2YyBSUpk2syTCo/QMA az85f3OS14jRN1wUIvVesnIhyPeVJ6q1hQ/9Hs03SaZ4CpE+jClieqds8KqTo9nbHrmgYRy7KS7 lo4u20wYnu/CsXq50h3a+sWMd7VAQRYN7HedEuVqlSHL90rnb990Bfuv2fBTZKTw2WjVFbBZKun b1Kmwdn7Gg3vK5TjpC+3ciwVv8SyXIipj9XTiw1d8BLTcIiG8/+8DB1MMVOYvXKH8abLc+yKVtP 1EcTTRRiiHegiHRZr7XAFRJpvja9w9Rg4WGAk/NeEtsjmSeURl6T20M0fIXF826vO1ijNwKaP8k 8ILnIKhDmO1GKZaZf6BhxRYlncQty8xKy9decZEkVD34ZcPFC6AteUfzU/LTOXOtLlOifQ/ygH8 YcuZ+8/tQosw0gcXQe4F1HekL34TeG8/nRDmurx3f3Er8fpJK9/npgexlquQ7ybn3z3OFuHJzOI lDG1t7hhslaYyWGLi/RtK3BiwmDxLnv7W9OPbeMZShvyLgpkJY7FiSRLxFsATeRFNAXs555QoS8 4G9Kd6dW44kLeUW9Nl0SjKGqMA/JTY681UagG4yqfvVYNzR9cpLlv3lLXvePiYhB/kTWTAolyCU dxPE+TFBfTftNDA== X-Mailer: b4 0.14.3 Message-ID: <20260402-binder-crate-name-v4-1-ec3919b87909@google.com> Subject: [PATCH v4 1/2] rust: support overriding crate_name From: Alice Ryhl To: Miguel Ojeda , Tamir Duberstein , Nathan Chancellor , Nicolas Schier Cc: Boqun Feng , Gary Guo , "=?utf-8?q?Bj=C3=B6rn_Roy_Baron?=" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Jesung Yang , Greg Kroah-Hartman , Carlos Llamas , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Alice Ryhl Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Currently you cannot filter out the crate-name argument RUSTFLAGS_REMOVE_stem.o because the Rust filter-out invocation does not include that particular argument. Since --crate-name is an argument that can't be passed multiple times, this means that it's currently not possible to override the crate name. Thus, remove the --crate-name argument for drivers. This allows them to override the crate name using the #![crate_name] annotation. This affects symbol names, but has no effect on the filenames of object files and other things generated by the build, as we always use --emit with a fixed output filename. The --crate-name argument is kept for the crates under rust/ for simplicity and to avoid changing many of them by adding #![crate_name]. The rust analyzer script is updated to use rustc to obtain the crate name of the driver crates, which picks up the right name whether it is configured via #![crate_name] or not. For readability, the logic to invoke 'rustc' is extracted to its own function. Note that the crate name in the python script is not actually that important - the only place where the name actually affects anything is in the 'deps' array which specifies an index and name for each dependency, and determines what that dependency is called in *this* crate. (The same crate may be called different things in each dependency.) Since driver crates are leaf crates, this doesn't apply and the rustc invocation only affects the 'display_name' parameter. Acked-by: Gary Guo Signed-off-by: Alice Ryhl Acked-by: Tamir Duberstein Reviewed-by: Jesung Yang --- scripts/Makefile.build | 1 - scripts/generate_rust_analyzer.py | 46 ++++++++++++++++++++---------------= ---- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index a6d1a2b210aa..0b0245106d01 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -333,7 +333,6 @@ rust_common_cmd =3D \ -Zcrate-attr=3D'feature($(rust_allowed_features))' \ -Zunstable-options --extern pin_init --extern kernel \ --crate-type rlib -L $(objtree)/rust/ \ - --crate-name $(basename $(notdir $@)) \ --sysroot=3D/dev/null \ --out-dir $(dir $@) --emit=3Ddep-info=3D$(depfile) =20 diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_anal= yzer.py index b4a55344688d..de6ebf14e2b8 100755 --- a/scripts/generate_rust_analyzer.py +++ b/scripts/generate_rust_analyzer.py @@ -12,6 +12,12 @@ import subprocess import sys from typing import Dict, Iterable, List, Literal, Optional, TypedDict =20 +def invoke_rustc(args): + return subprocess.check_output( + [os.environ["RUSTC"]] + args, + stdin=3Dsubprocess.DEVNULL, + ).decode('utf-8').strip() + def args_crates_cfgs(cfgs: List[str]) -> Dict[str, List[str]]: crates_cfgs =3D {} for cfg in cfgs: @@ -69,6 +75,9 @@ def generate_crates( crates: List[Crate] =3D [] crates_cfgs =3D args_crates_cfgs(cfgs) =20 + def get_crate_name(path): + return invoke_rustc(["--print", "crate-name", path]) + def build_crate( display_name: str, root_module: pathlib.Path, @@ -112,23 +121,15 @@ def generate_crates( is_workspace_member=3Dis_workspace_member, edition=3Dedition, ) - proc_macro_dylib_name =3D ( - subprocess.check_output( - [ - os.environ["RUSTC"], - "--print", - "file-names", - "--crate-name", - display_name, - "--crate-type", - "proc-macro", - "-", - ], - stdin=3Dsubprocess.DEVNULL, - ) - .decode("utf-8") - .strip() - ) + proc_macro_dylib_name =3D invoke_rustc([ + "--print", + "file-names", + "--crate-name", + display_name, + "--crate-type", + "proc-macro", + "-", + ]) proc_macro_crate: ProcMacroCrate =3D { **crate, "is_proc_macro": True, @@ -324,16 +325,17 @@ def generate_crates( for folder in extra_dirs: for path in folder.rglob("*.rs"): logging.info("Checking %s", path) - name =3D path.stem + file_name =3D path.stem =20 # Skip those that are not crate roots. - if not is_root_crate(path.parent / "Makefile", name) and \ - not is_root_crate(path.parent / "Kbuild", name): + if not is_root_crate(path.parent / "Makefile", file_name) and \ + not is_root_crate(path.parent / "Kbuild", file_name): continue =20 - logging.info("Adding %s", name) + crate_name =3D get_crate_name(path) + logging.info("Adding %s", crate_name) append_crate( - name, + crate_name, path, [core, kernel, pin_init], cfg=3Dgenerated_cfg, --=20 2.53.0.1185.g05d4b7b318-goog From nobody Fri Apr 3 20:53:01 2026 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB25539E19C for ; Thu, 2 Apr 2026 10:55:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775127346; cv=none; b=hoeXHZd1i31Rdb8IDZ2BOrGOhV8vfVQ4R3wFzNJUCgY+x3UfG3Sm9sYEYazStEmi/tP5Amqjik3vgcZjiTRgB09cWp04fW5/JuGji15e+oZghoNxwN7T33PSiBIV76KQVw0670GcJ7fdoqAzHoNnMUZE2/iHjlHS3W+RL40R69A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775127346; c=relaxed/simple; bh=bV7baRN/P8ziq+BlF+VlHBEOjJ2R3asSYMrZhFxs0IE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=LmfEjvGL6FC/LWTydf1CpzX7dNI2n6srtYpIQ2HZrsR1yrxqluQEaBA9MR7BaHhFaOdMx3/8+cdEJGt9jEjzHg5ckYa2yCgW1R/p6/xSdq/j4glgBhdCBp/5qtU98gVem8rd98AraBwG49xNQbxmiA5Frc3r2008RCN2xsUX0Ek= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=MVKMVAC8; arc=none smtp.client-ip=209.85.128.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="MVKMVAC8" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-48722073bd2so5640905e9.0 for ; Thu, 02 Apr 2026 03:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1775127343; x=1775732143; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=zyGYGjXr8/MxK8x3KQaVB9GfT3jIQgl3+sN3N/vJgmA=; b=MVKMVAC8WuAValyVgu85OT0KTQCtK71OZ3e/eD+xmpZbkmjYznAt6iuk2A8wlr/Wlb Ax3hMYGTziHTJKFADO/ASsfHTWU49lqADJqwBxZSiK/UolAgHCZcE4YVNVgc8p8f9t9i M8l316rUHYRofR7s0Rd8xEOca2GYyrm8xujousBWiZMVmjEpRXkTxVJG04Zesg6C0Lz4 UwEZNMsaOna0JFajDLXFU37V93d7YC7PwsmP1eCs1QUyQKhzWu0uluLegy3EMyGAf3DL Zzx7oNV5gCWOxXYiBLfMvqLZXg1aXnI0wP2tt6EvXWqLjZO3fnDuGhAfW3WyMTudh/At Wa7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775127343; x=1775732143; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zyGYGjXr8/MxK8x3KQaVB9GfT3jIQgl3+sN3N/vJgmA=; b=ZdOP1XgzTTDeoakCgDtLA+6cVtbPGVOaJR5jiSSTIOFTnyZQZy9kPaHiC210RZbElg Ha9ryepMryJ65UU1Yglgsi6J5OepWq2bb4BOKHb2w7Oyjg/dhuy1369S3VY/i1LdEe11 QSjxCvwPoFwl1me0osETrGhrE0A7rUEOnv+gqYYljOteM9RYE+8Djng8ZPnl26JxTdK6 YQLw9Xvxl8ZiPooPSbh/LKe52hkavcLze2fHlrxvDGs37GnqlCqDhlKayFVdQHqHSRHY ZKggs1I5hK2YprAwJGs2I9j7bmChCEJxgnR8CHCQzgxPyq6kASG6Kf3CvVBMP+1/w+io 9B8Q== X-Forwarded-Encrypted: i=1; AJvYcCUhW39gfy/uv4M4IJ6YEiYFBBPIGhsc2+TCdwm+KPxrkkvJUy14p1ygWBZlfvhRNay0h8Sz1t8EBEGY7UQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyVHxQQcs04Is8A+H9KQPBdVT+dYka2yQn4hZTdam6bJBUilbGw rFDyW88mxfsZUoY7PqD1vx1IQdTg/ZJApTVN0RdZiqcxy5CPE+QxC4SGepvRvq03SD8rBx2erc2 RzjDcX264jSImnnAzqw== X-Received: from wmbz11.prod.google.com ([2002:a05:600c:c08b:b0:488:888b:cf6b]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:c107:b0:46e:59bd:f7e2 with SMTP id 5b1f17b1804b1-4888e0b0022mr22992905e9.11.1775127343065; Thu, 02 Apr 2026 03:55:43 -0700 (PDT) Date: Thu, 02 Apr 2026 10:55:34 +0000 In-Reply-To: <20260402-binder-crate-name-v4-0-ec3919b87909@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260402-binder-crate-name-v4-0-ec3919b87909@google.com> X-Developer-Key: i=aliceryhl@google.com; a=openpgp; fpr=49F6C1FAA74960F43A5B86A1EE7A392FDE96209F X-Developer-Signature: v=1; a=openpgp-sha256; l=948; i=aliceryhl@google.com; h=from:subject:message-id; bh=bV7baRN/P8ziq+BlF+VlHBEOjJ2R3asSYMrZhFxs0IE=; b=owEBbQKS/ZANAwAKAQRYvu5YxjlGAcsmYgBpzksriLV4sC5c4iDpl+9c+vvQmGoCtrOAWXznL M1X4GbLfaCJAjMEAAEKAB0WIQSDkqKUTWQHCvFIvbIEWL7uWMY5RgUCac5LKwAKCRAEWL7uWMY5 RmB1D/9FDNfuobmJ7/Z0LeRtTQxImRnE1HA5c5knL4XJ8VCg2t8a8M6NIUpxapEqKR6ybygO4Fr 2LV1HljE8KmsZyn4rCQZa/IsC4afX4oD1uZMoZrNBQzxw5Xewjpxu2XMVgVhyEUU+s28Vob1t+T UYzJvaXFZuY/rJ1WwUfNbw2xaoiPxOx9Lu1iIEaMJORoax0ByUPa7ja5iIjXBeJ5SivyqL0lJGv u0IMoFh6R3824uVE4kGW+qaB3GR/kTToI5Q31lKDqfpvClz7Bn5oKGjxjqWhO1HhX2amfS0Q0eD B3fpiG2iSSC0OWIekCHy2d03u04lElEsQahhMd+qkM04Yex0UMfrJEBv+ZWXDcPSB8DU/4MEMeT h3nTox7V5qEUIffgPUXcFrF9t1s+E8KBFsebc9OsmoBDjjRm7/To1cvrgllbwCoPV3EsyOkL7hU HjcZQRESvRHlFp8ov13YMwfEsB9d2Adt1xPtqQqnkrtwdIX6376oW+fOH+AYXvTdeO/pUWdQcVM w5nYJsO0k/UgsWVlicWEyU+eiTijKX3D2h9dweY66Kdp74s2LwFgcGdJP7J/mWf9PiS9oZlCywO iS970oSILj72B6hOS0mPlU7n1eR5aSeEE50pI1WUyQFmQmOptlnHeFEvaD/OfriDKtH3J6YAH+E n5rrRtmzSW6lzRw== X-Mailer: b4 0.14.3 Message-ID: <20260402-binder-crate-name-v4-2-ec3919b87909@google.com> Subject: [PATCH v4 2/2] rust_binder: override crate name to rust_binder From: Alice Ryhl To: Miguel Ojeda , Tamir Duberstein , Nathan Chancellor , Nicolas Schier Cc: Boqun Feng , Gary Guo , "=?utf-8?q?Bj=C3=B6rn_Roy_Baron?=" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Jesung Yang , Greg Kroah-Hartman , Carlos Llamas , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Alice Ryhl Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Acked-by: Gary Guo Acked-by: Greg Kroah-Hartman --- 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/b= inder/rust_binder_main.rs index aa5f2a75adb4..85a15dd40bec 100644 --- a/drivers/android/binder/rust_binder_main.rs +++ b/drivers/android/binder/rust_binder_main.rs @@ -3,6 +3,8 @@ // Copyright (C) 2025 Google LLC. =20 //! Binder -- the Android IPC mechanism. + +#![crate_name =3D "rust_binder"] #![recursion_limit =3D "256"] #![allow( clippy::as_underscore, --=20 2.53.0.1185.g05d4b7b318-goog