freebsd-dev/sys/compat
John Baldwin e28024fbad 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
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D20992
2019-08-13 21:15:59 +00:00
..
cloudabi kern_shm_open: push O_CLOEXEC into caller control 2019-07-31 15:16:51 +00:00
cloudabi32 makesyscalls.sh: always use absolute path for syscalls.conf 2019-05-30 20:56:23 +00:00
cloudabi64 makesyscalls.sh: always use absolute path for syscalls.conf 2019-05-30 20:56:23 +00:00
freebsd32 Make randomized stack gap between strings and pointers to argv/envs. 2019-07-31 20:23:10 +00:00
ia32 Make randomized stack gap between strings and pointers to argv/envs. 2019-07-31 20:23:10 +00:00
lindebugfs LinuxKPI: Finalize move of lindebugfs from ports to base. 2019-05-19 15:44:21 +00:00
linprocfs Decode more CPU flags in cpuinfo. 2019-05-03 08:27:03 +00:00
linsysfs Remove wrong copyright line. Discussed with Carlos Neira. 2019-05-07 05:08:13 +00:00
linux compat/linux: Remove obsoleted and somewhat confusing comments related to COMPAT_43. 2019-08-11 19:17:29 +00:00
linuxkpi/common Fix build with DRM and INVARIANTS enabled. 2019-08-13 21:15:59 +00:00
ndis Fix compilation with 'option NDISAPI + device ndis' and 2019-01-30 11:40:12 +00:00
netbsd sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
x86bios x86bios: use M_NOWAIT with mallocs 2018-09-13 07:04:00 +00:00