diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-22 08:05:10 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-22 08:05:59 -0400 |
commit | 2d61df87876ddf4bd4980f9b3bc9f8a5de02e982 (patch) | |
tree | fed0f9767c8c3131565bddd0f93f20f1fd52f59d | |
parent | 3304c90beca961b1bc8ae291015d4064bc3ce203 (diff) |
bindgen: blacklist bch_ioctl_data_event
fix 32 bit build - the rust side doesn't use this type:
error: builder for '/nix/store/zpk4nnya8qmiwgylhv5q71887kqqyp4d-bcachefs-tools-i686-unknown-linux-gnu-1.25.1+3304c90.drv' failed with exit code 2;
last 25 log lines:
> error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
> --> /build/source/target/i686-unknown-linux-gnu/release/build/bch_bindgen-c913367861ffd851/out/bcachefs.rs:27492:1
> |
> 27492 | pub struct bch_ioctl_data_event {
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> |
> note: `bch_ioctl_data_progress` has a `#[repr(align)]` attribute
> --> /build/source/target/i686-unknown-linux-gnu/release/build/bch_bindgen-c913367861ffd851/out/bcachefs.rs:27373:1
> |
> 27373 | pub struct bch_ioctl_data_progress {
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> note: `bch_ioctl_data_event` contains a field of type `bch_ioctl_data_event__bindgen_ty_1`
> --> /build/source/target/i686-unknown-linux-gnu/release/build/bch_bindgen-c913367861ffd851/out/bcachefs.rs:27496:9
> |
> 27496 | pub __bindgen_anon_1: bch_ioctl_data_event__bindgen_ty_1,
> | ^^^^^^^^^^^^^^^^
> note: ...which contains a field of type `bch_ioctl_data_progress`
> --> /build/source/target/i686-unknown-linux-gnu/release/build/bch_bindgen-c913367861ffd851/out/bcachefs.rs:27501:9
> |
> 27501 | pub p: bch_ioctl_data_progress,
> | ^
>
> For more information about this error, try `rustc --explain E0588`.
> error: could not compile `bch_bindgen` (lib) due to 1 previous error
> make: *** [Makefile:185: bcachefs] Error 101
For full logs, run 'nix log /nix/store/zpk4nnya8qmiwgylhv5q71887kqqyp4d-bcachefs-tools-i686-unknown-linux-gnu-1.25.1+3304c90.drv'.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | bch_bindgen/build.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bch_bindgen/build.rs b/bch_bindgen/build.rs index e1850f45..2abbe581 100644 --- a/bch_bindgen/build.rs +++ b/bch_bindgen/build.rs @@ -64,6 +64,7 @@ fn main() { .blocklist_function("bch2_prt_vprintf") .blocklist_type("rhash_lock_head") .blocklist_type("srcu_struct") + .blocklist_type("bch_ioctl_data_event") .allowlist_var("BCH_.*") .allowlist_var("KEY_SPEC_.*") .allowlist_var("Fix753_.*") |