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)
Tue, Apr 7, 2:41 PM
Unknown Object (File)
Tue, Apr 7, 4:53 AM
Unknown Object (File)
Mon, Apr 6, 3:56 PM
Unknown Object (File)
Sun, Apr 5, 12:43 AM
Unknown Object (File)
Sun, Mar 29, 12:55 AM
Unknown Object (File)
Mon, Mar 23, 7:26 PM
Unknown Object (File)
Thu, Mar 19, 10:15 PM
Unknown Object (File)
Wed, Mar 18, 1:09 PM
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