xref: /linux/rust/bindgen_parameters (revision 182fff3a2aafe4e7f3717a0be9df2fe2ed1a77de)
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
28# These constants are sometimes not recognized by bindgen depending on config.
29# We use const helpers to aid bindgen, to avoid conflicts when constants are
30# recognized, block generation of the non-helper constants.
31--blocklist-item ARCH_SLAB_MINALIGN
32