Skip to content

Commit ef1612d

Browse files
committed
rust: bindgen: Exclude list functions with unsupported ABIs
CONFIG_LIST_HARDENED causes certain list functions to use what bindgen considers an unsupported ABI: panicked at 'Invalid or unknown abi 14 for function "__list_del_entry_valid_or_report" (Function { name: "__list_del_entry_valid_or_report", mangled_name: Some("__list_del_entry_valid_or_report"), link_name: None, signature: TypeId(ItemId(38153)), kind: Function, linkage: External })', /usr/share/cargo/registry/bindgen-0.68.1/codegen/mod.rs:4195:17 Exclude these, since they are internal functions we don't use directly anyway. Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent a30c798 commit ef1612d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rust/bindgen_parameters

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@
2424
# These functions use the `__preserve_most` calling convention, which neither bindgen
2525
# nor Rust currently understand, and which Clang currently declares to be unstable.
2626
--blocklist-function __list_.*_report
27+
# CONFIG_LIST_HARDENED triggers "Invalid or unknown abi 14" for these
28+
--blocklist-function __list_valid_slowpath
29+
--blocklist-function __list_add_valid_or_report
30+
--blocklist-function __list_del_entry_valid_or_report

0 commit comments

Comments
 (0)