Page MenuHomeFreeBSD

LinuxKPI: add supporting #includes
ClosedPublic

Authored by bz on Mar 19 2026, 8:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 4, 3:04 AM
Unknown Object (File)
Sat, Oct 3, 12:29 PM
Unknown Object (File)
Sat, Oct 3, 12:29 PM
Unknown Object (File)
Fri, Oct 2, 9:59 AM
Unknown Object (File)
Fri, Oct 2, 7:32 AM
Unknown Object (File)
Fri, Oct 2, 5:19 AM
Unknown Object (File)
Wed, Sep 23, 11:06 AM
Unknown Object (File)
Tue, Sep 22, 5:08 PM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable