bindgen_parameters 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. # SPDX-License-Identifier: GPL-2.0
  2. --opaque-type xregs_state
  3. --opaque-type desc_struct
  4. --opaque-type arch_lbr_state
  5. --opaque-type local_apic
  6. # Packed type cannot transitively contain a `#[repr(align)]` type.
  7. --opaque-type alt_instr
  8. --opaque-type x86_msi_data
  9. --opaque-type x86_msi_addr_lo
  10. # `try` is a reserved keyword since Rust 2018; solved in `bindgen` v0.59.2,
  11. # commit 2aed6b021680 ("context: Escape the try keyword properly").
  12. --opaque-type kunit_try_catch
  13. # If SMP is disabled, `arch_spinlock_t` is defined as a ZST which triggers a Rust
  14. # warning. We don't need to peek into it anyway.
  15. --opaque-type spinlock
  16. # `seccomp`'s comment gets understood as a doctest
  17. --no-doc-comments
  18. # These functions use the `__preserve_most` calling convention, which neither bindgen
  19. # nor Rust currently understand, and which Clang currently declares to be unstable.
  20. --blocklist-function __list_.*_report
  21. # These constants are sometimes not recognized by bindgen depending on config.
  22. # We use const helpers to aid bindgen, to avoid conflicts when constants are
  23. # recognized, block generation of the non-helper constants.
  24. --blocklist-item ARCH_SLAB_MINALIGN