xref: /openbmc/linux/rust/bindgen_parameters (revision 9853f130)
12f7ab126SMiguel Ojeda# SPDX-License-Identifier: GPL-2.0
22f7ab126SMiguel Ojeda
32f7ab126SMiguel Ojeda--opaque-type xregs_state
42f7ab126SMiguel Ojeda--opaque-type desc_struct
52f7ab126SMiguel Ojeda--opaque-type arch_lbr_state
62f7ab126SMiguel Ojeda--opaque-type local_apic
72f7ab126SMiguel Ojeda
82f7ab126SMiguel Ojeda# Packed type cannot transitively contain a `#[repr(align)]` type.
93098cb65SArnaldo Carvalho de Melo--opaque-type alt_instr
102f7ab126SMiguel Ojeda--opaque-type x86_msi_data
112f7ab126SMiguel Ojeda--opaque-type x86_msi_addr_lo
122f7ab126SMiguel Ojeda
132f7ab126SMiguel Ojeda# `try` is a reserved keyword since Rust 2018; solved in `bindgen` v0.59.2,
142f7ab126SMiguel Ojeda# commit 2aed6b021680 ("context: Escape the try keyword properly").
152f7ab126SMiguel Ojeda--opaque-type kunit_try_catch
162f7ab126SMiguel Ojeda
172f7ab126SMiguel Ojeda# If SMP is disabled, `arch_spinlock_t` is defined as a ZST which triggers a Rust
182f7ab126SMiguel Ojeda# warning. We don't need to peek into it anyway.
192f7ab126SMiguel Ojeda--opaque-type spinlock
202f7ab126SMiguel Ojeda
212f7ab126SMiguel Ojeda# `seccomp`'s comment gets understood as a doctest
222f7ab126SMiguel Ojeda--no-doc-comments
23*9853f130SMatthew Maurer
24*9853f130SMatthew Maurer# These functions use the `__preserve_most` calling convention, which neither bindgen
25*9853f130SMatthew Maurer# nor Rust currently understand, and which Clang currently declares to be unstable.
26*9853f130SMatthew Maurer--blocklist-function __list_.*_report
27