diff options
author | Miguel Ojeda <ojeda@kernel.org> | 2024-07-09 18:06:03 +0200 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2024-07-10 10:28:52 +0200 |
commit | 9e98db17837093cb0f4dcfcc3524739d93249c45 (patch) | |
tree | 3aafc6febe3bb11a89e6d412afc4569532b9de6b /fs/sysfs | |
parent | rust: avoid assuming a particular `bindgen` build (diff) | |
download | linux-9e98db17837093cb0f4dcfcc3524739d93249c45.tar.xz linux-9e98db17837093cb0f4dcfcc3524739d93249c45.zip |
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 [1]
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>
Diffstat (limited to 'fs/sysfs')
0 files changed, 0 insertions, 0 deletions