]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: kbuild: remove "dummy parameter" workaround for `bindgen` < 0.71.1
authorMiguel Ojeda <ojeda@kernel.org>
Sun, 5 Apr 2026 23:52:57 +0000 (01:52 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 7 Apr 2026 08:00:24 +0000 (10:00 +0200)
Until the version bump of `bindgen`, we needed to pass a dummy parameter
to avoid failing the `--version` call.

Thus remove it.

Reviewed-by: Tamir Duberstein <tamird@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260405235309.418950-22-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
init/Kconfig
scripts/rust_is_available.sh

index f9fac458e4d42dbe0f9ce78b584a7113225958fe..d9b795f70a38bd167c137cd8cc81bf81972b9d71 100644 (file)
@@ -2211,12 +2211,7 @@ config RUSTC_VERSION_TEXT
 config BINDGEN_VERSION_TEXT
        string
        depends on RUST
-       # The dummy parameter `workaround-for-0.69.0` is required to support 0.69.0
-       # (https://github.com/rust-lang/rust-bindgen/pull/2678) and 0.71.0
-       # (https://github.com/rust-lang/rust-bindgen/pull/3040). It can be removed
-       # when the minimum version is upgraded past the latter (0.69.1 and 0.71.1
-       # both fixed the issue).
-       default "$(shell,$(BINDGEN) --version workaround-for-0.69.0 2>/dev/null)"
+       default "$(shell,$(BINDGEN) --version 2>/dev/null)"
 
 #
 # Place an empty function call at each tracepoint site. Can be
index cefc456c2503acc6323daa73f25679cff1ba662d..551f1ebd0dcb7de7975b4eb9c6b2a6760578d342 100755 (executable)
@@ -121,14 +121,8 @@ fi
 # Check that the Rust bindings generator is suitable.
 #
 # Non-stable and distributions' versions may have a version suffix, e.g. `-dev`.
-#
-# The dummy parameter `workaround-for-0.69.0` is required to support 0.69.0
-# (https://github.com/rust-lang/rust-bindgen/pull/2678) and 0.71.0
-# (https://github.com/rust-lang/rust-bindgen/pull/3040). It can be removed when
-# the minimum version is upgraded past the latter (0.69.1 and 0.71.1 both fixed
-# the issue).
 rust_bindings_generator_output=$( \
-       LC_ALL=C "$BINDGEN" --version workaround-for-0.69.0 2>/dev/null
+       LC_ALL=C "$BINDGEN" --version 2>/dev/null
 ) || rust_bindings_generator_code=$?
 if [ -n "$rust_bindings_generator_code" ]; then
        echo >&2 "***"