Page MenuHomeFreeBSD

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

Authored by dumbbell on Mon, Jun 23, 9:36 PM.

Details

Reviewers
emaste
manu
Group Reviewers
linuxkpi
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

Lint
Lint Skipped
Unit
Tests Skipped
OSZAR »