12f7ab126SMiguel Ojeda# SPDX-License-Identifier: GPL-2.0 22f7ab126SMiguel Ojeda 3*2fd6f55cSGary Guo# We want to map these types to `isize`/`usize` manually, instead of 4*2fd6f55cSGary Guo# define them as `int`/`long` depending on platform bitwidth. 5*2fd6f55cSGary Guo--blocklist-type __kernel_s?size_t 6*2fd6f55cSGary Guo--blocklist-type __kernel_ptrdiff_t 7*2fd6f55cSGary Guo 82f7ab126SMiguel Ojeda--opaque-type xregs_state 92f7ab126SMiguel Ojeda--opaque-type desc_struct 102f7ab126SMiguel Ojeda--opaque-type arch_lbr_state 112f7ab126SMiguel Ojeda--opaque-type local_apic 122f7ab126SMiguel Ojeda 132f7ab126SMiguel Ojeda# Packed type cannot transitively contain a `#[repr(align)]` type. 143098cb65SArnaldo Carvalho de Melo--opaque-type alt_instr 152f7ab126SMiguel Ojeda--opaque-type x86_msi_data 162f7ab126SMiguel Ojeda--opaque-type x86_msi_addr_lo 172f7ab126SMiguel Ojeda 182f7ab126SMiguel Ojeda# `try` is a reserved keyword since Rust 2018; solved in `bindgen` v0.59.2, 192f7ab126SMiguel Ojeda# commit 2aed6b021680 ("context: Escape the try keyword properly"). 202f7ab126SMiguel Ojeda--opaque-type kunit_try_catch 212f7ab126SMiguel Ojeda 222f7ab126SMiguel Ojeda# If SMP is disabled, `arch_spinlock_t` is defined as a ZST which triggers a Rust 232f7ab126SMiguel Ojeda# warning. We don't need to peek into it anyway. 242f7ab126SMiguel Ojeda--opaque-type spinlock 252f7ab126SMiguel Ojeda 262f7ab126SMiguel Ojeda# `seccomp`'s comment gets understood as a doctest 272f7ab126SMiguel Ojeda--no-doc-comments 28bad098d7SMatthew Maurer 29bad098d7SMatthew Maurer# These functions use the `__preserve_most` calling convention, which neither bindgen 30bad098d7SMatthew Maurer# nor Rust currently understand, and which Clang currently declares to be unstable. 31bad098d7SMatthew Maurer--blocklist-function __list_.*_report 32732cd686SGary Guo 33732cd686SGary Guo# These constants are sometimes not recognized by bindgen depending on config. 34732cd686SGary Guo# We use const helpers to aid bindgen, to avoid conflicts when constants are 35732cd686SGary Guo# recognized, block generation of the non-helper constants. 36732cd686SGary Guo--blocklist-item ARCH_SLAB_MINALIGN 37