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)
Sat, May 9, 3:26 AM
Unknown Object (File)
Thu, May 7, 3:08 PM
Unknown Object (File)
Wed, May 6, 5:06 AM
Unknown Object (File)
Tue, May 5, 11:54 PM
Unknown Object (File)
Sun, May 3, 7:11 AM
Unknown Object (File)
Thu, Apr 30, 11:27 PM
Unknown Object (File)
Wed, Apr 29, 11:37 PM
Unknown Object (File)
Wed, Apr 29, 6:05 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