]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: work around `bindgen` 0.69.0 issue
authorMiguel Ojeda <ojeda@kernel.org>
Tue, 9 Jul 2024 16:06:03 +0000 (18:06 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 10 Jul 2024 08:28:52 +0000 (10:28 +0200)
commit9e98db17837093cb0f4dcfcc3524739d93249c45
tree3aafc6febe3bb11a89e6d412afc4569532b9de6b
parentd49082faf6a001019693a837dea7b958048c731c
rust: work around `bindgen` 0.69.0 issue

`bindgen` 0.69.0 contains a bug: `--version` does not work without
providing a header [1]:

    error: the following required arguments were not provided:
      <HEADER>

    Usage: bindgen <FLAGS> <OPTIONS> <HEADER> -- <CLANG_ARGS>...

Thus, in preparation for supporting several `bindgen` versions, work
around the issue by passing a dummy argument.

Include a comment so that we can remove the workaround in the future.

Link: https://github.com/rust-lang/rust-bindgen/pull/2678
Reviewed-by: Finn Behrens <me@kloenk.dev>
Tested-by: Benno Lossin <benno.lossin@proton.me>
Tested-by: Andreas Hindborg <a.hindborg@samsung.com>
Link: https://lore.kernel.org/r/20240709160615.998336-9-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
init/Kconfig
scripts/rust_is_available.sh