Skip to content

Commit 2dc7e1e

Browse files
committed
rust: Fix for new bindgen
Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 22f6852 commit 2dc7e1e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rust/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ quiet_cmd_bindgen = BINDGEN $@
300300
$(BINDGEN) $< $(bindgen_target_flags) \
301301
--use-core --with-derive-default --ctypes-prefix core::ffi --no-layout-tests \
302302
--no-debug '.*' \
303-
--size_t-is-usize -o $@ -- $(bindgen_c_flags_final) -DMODULE \
303+
-o $@ -- $(bindgen_c_flags_final) -DMODULE \
304304
$(bindgen_target_cflags) $(bindgen_target_extra)
305305

306306
$(obj)/bindings/bindings_generated.rs: private bindgen_target_flags = \
@@ -320,8 +320,8 @@ $(obj)/uapi/uapi_generated.rs: $(src)/uapi/uapi_helper.h \
320320
# given it is `libclang`; but for consistency, future Clang changes and/or
321321
# a potential future GCC backend for `bindgen`, we disable it too.
322322
$(obj)/bindings/bindings_helpers_generated.rs: private bindgen_target_flags = \
323-
--blacklist-type '.*' --whitelist-var '' \
324-
--whitelist-function 'rust_helper_.*'
323+
--blocklist-type '.*' --allowlist-var '' \
324+
--allowlist-function 'rust_helper_.*'
325325
$(obj)/bindings/bindings_helpers_generated.rs: private bindgen_target_cflags = \
326326
-I$(objtree)/$(obj) -Wno-missing-prototypes -Wno-missing-declarations
327327
$(obj)/bindings/bindings_helpers_generated.rs: private bindgen_target_extra = ; \

0 commit comments

Comments
 (0)