Skip to content

Commit 2d4be60

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 <[email protected]>
1 parent fd128fd commit 2d4be60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rust/bindgen_parameters

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@
2020

2121
# `seccomp`'s comment gets understood as a doctest
2222
--no-doc-comments
23+
24+
# CONFIG_LIST_HARDENED triggers "Invalid or unknown abi 14" for these
25+
--blocklist-function __list_valid_slowpath
26+
--blocklist-function __list_add_valid_or_report
27+
--blocklist-function __list_del_entry_valid_or_report

0 commit comments

Comments
 (0)