Searched hist:361191 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dlockdep.hdiff 361191 Mon May 18 09:30:41 MDT 2020 hselasky MFC r351003:
Fix build with DRM and INVARIANTS enabled.

The DRM drivers use the lockdep assertion macros with spinlock_t locks
which are backed by mutexes, not sx locks. This causes compile
failures since you can't use sx_assert with a mutex. Instead, change
the lockdep macros to use lock_class methods. This works by assuming
that each LinuxKPI locking primitive embeds a FreeBSD lock as its
first structure and uses a cast to get to the underlying 'struct
lock_object'.

Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D20992

Completed in 57 milliseconds