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)
Mon, Feb 2, 1:07 AM
Unknown Object (File)
Sun, Feb 1, 10:38 PM
Unknown Object (File)
Sun, Jan 11, 12:59 AM
Unknown Object (File)
Dec 12 2025, 5:11 PM
Unknown Object (File)
Dec 11 2025, 6:51 AM
Unknown Object (File)
Dec 7 2025, 12:21 AM
Unknown Object (File)
Dec 5 2025, 11:22 PM
Unknown Object (File)
Nov 26 2025, 5:25 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