Skip to content

Commit

Permalink
rust: remove guard for rust-bindgen bug
Browse files Browse the repository at this point in the history
The bug which this guard protects against
(rust-lang/rust-bindgen#1671)
was fixed upstream as of rust-bindgen v0.53:
rust-lang/rust-bindgen#1688
d650823839f7 ("Remove size_t to usize conversion")

The current recommended rust-bindgen version for building
the Linux kernel is v0.56, so the guard can be safely
dropped.

Signed-off-by: Sven Van Asbroeck <[email protected]>
  • Loading branch information
Sven Van Asbroeck committed Apr 14, 2021
1 parent 4b7e761 commit af7d432
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions rust/helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,3 @@ void rust_helper_kunmap(struct page *page)
return kunmap(page);
}
EXPORT_SYMBOL(rust_helper_kunmap);

// See https://github.com/rust-lang/rust-bindgen/issues/1671
static_assert(__builtin_types_compatible_p(size_t, uintptr_t),
"size_t must match uintptr_t, what architecture is this??");

0 comments on commit af7d432

Please sign in to comment.