HomeFreeBSD

LinuxKPI: add supporting #includes

Description

LinuxKPI: add supporting #includes

Compiling drm-kmod on !X86 does not include asm/smp.h which includes
preempt.h on FreeBSD. In order to compile drm-kmod on other
architectures add the secondary #includes for preempt.h to
spinlock.h and hardirq.h (which now also gets included from highmem.h)
to connect the #include chain.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
PR: 279864
Reviewed by: jhibbits, emaste
Differential Revision: https://reviews.freebsd.org/D55974

Details

Provenance
bzAuthored on Mar 19 2026, 8:29 PM
Reviewer
jhibbits
Differential Revision
D55974: LinuxKPI: add supporting #includes
Parents
rG2ce06d25431a: sbuf: make assertion message a lot more useable
Branches
Unknown
Tags
Unknown