btf, scripts: rust: drop is_rust_module.sh
authorAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jul 2023 05:21:36 +0000 (07:21 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 10 Aug 2023 20:28:04 +0000 (22:28 +0200)
commit41bdc6decda074afc4d8f8ba44c69b08d0e9aff6
treec3c68b89f988058382d4d8917dd0ceebc1d9c83a
parent823d4737d4c226699f4378b71675822f5ebe78ba
btf, scripts: rust: drop is_rust_module.sh

With commit c1177979af9c ("btf, scripts: Exclude Rust CUs with pahole")
we are now able to use pahole directly to identify Rust compilation
units (CUs) and exclude them from generating BTF debugging information
(when DEBUG_INFO_BTF is enabled).

And if pahole doesn't support the --lang-exclude flag, we can't enable
both RUST and DEBUG_INFO_BTF at the same time.

So, in any case, the script is_rust_module.sh is just redundant and we
can drop it.

NOTE: we may also be able to drop the "Rust loadable module" mark
inside Rust modules, but it seems safer to keep it for now to make sure
we are not breaking any external tool that may potentially rely on it.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Eric Curtin <ecurtin@redhat.com>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Acked-by: Daniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/r/20230704052136.155445-1-andrea.righi@canonical.com
[ Picked the `Reviewed-by`s from the old patch too. ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/macros/module.rs
scripts/Makefile.modfinal
scripts/is_rust_module.sh [deleted file]