Page MenuHomeFreeBSD

LinuxKPI: add supporting #includes
ClosedPublic

Authored by bz on Mar 19 2026, 8:32 PM.
Tags
None
Referenced Files
F166102825: D55974.id174091.diff
Tue, Aug 11, 6:08 PM
F166100612: D55974.id173959.diff
Tue, Aug 11, 5:44 PM
Unknown Object (File)
Sun, Aug 9, 6:40 PM
Unknown Object (File)
Sun, Aug 9, 3:20 PM
Unknown Object (File)
Sun, Aug 9, 4:21 AM
Unknown Object (File)
Sat, Aug 8, 8:35 PM
Unknown Object (File)
Sat, Aug 8, 5:29 PM
Unknown Object (File)
Sat, Aug 8, 4:57 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