xref: /linux/rust/bindgen_parameters (revision 2a6b6c9a226279b4f6668450ddb21ae655558087)
1# SPDX-License-Identifier: GPL-2.0
2
3--opaque-type xregs_state
4--opaque-type desc_struct
5--opaque-type arch_lbr_state
6--opaque-type local_apic
7
8# Packed type cannot transitively contain a `#[repr(align)]` type.
9--opaque-type alt_instr
10--opaque-type x86_msi_data
11--opaque-type x86_msi_addr_lo
12
13# `try` is a reserved keyword since Rust 2018; solved in `bindgen` v0.59.2,
14# commit 2aed6b021680 ("context: Escape the try keyword properly").
15--opaque-type kunit_try_catch
16
17# If SMP is disabled, `arch_spinlock_t` is defined as a ZST which triggers a Rust
18# warning. We don't need to peek into it anyway.
19--opaque-type spinlock
20
21# `seccomp`'s comment gets understood as a doctest
22--no-doc-comments
23
24# These functions use the `__preserve_most` calling convention, which neither bindgen
25# nor Rust currently understand, and which Clang currently declares to be unstable.
26--blocklist-function __list_.*_report
27