Page MenuHomeFreeBSD

linuxkpi: Include <linux/spinlock.h> from <linux/refcount.h>
ClosedPublic

Authored by dumbbell on Jun 23 2025, 9:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 5, 6:37 AM
Unknown Object (File)
Sun, Jul 5, 12:15 AM
Unknown Object (File)
Mon, Jun 29, 11:51 PM
Unknown Object (File)
Sat, Jun 20, 1:51 PM
Unknown Object (File)
Fri, Jun 19, 9:33 PM
Unknown Object (File)
May 9 2026, 3:26 AM
Unknown Object (File)
May 7 2026, 3:08 PM
Unknown Object (File)
May 6 2026, 5:06 AM
Subscribers

Details

Summary

The <linux/refcount.h> header uses the spinlock_t type and some consumers in the DRM drivers don't include <linux/spinlock.h> directly or indirectly. This led to compilation errors because the type was undefined.

On Linux, <linux/refcount.h> includes <linux/spinlock_type.h> as a comparision.

Sponsored by: The FreeBSD Foundation

Diff Detail

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