Skip to content

Commit fd7dbf1

Browse files
hoshinolinajannau
authored andcommitted
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 c70386a commit fd7dbf1

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
@@ -34,3 +34,7 @@
3434
# We use const helpers to aid bindgen, to avoid conflicts when constants are
3535
# recognized, block generation of the non-helper constants.
3636
--blocklist-item ARCH_SLAB_MINALIGN
37+
# CONFIG_LIST_HARDENED triggers "Invalid or unknown abi 14" for these
38+
--blocklist-function __list_valid_slowpath
39+
--blocklist-function __list_add_valid_or_report
40+
--blocklist-function __list_del_entry_valid_or_report

0 commit comments

Comments
 (0)