Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux Disable linux lockdep fo...



details:   https://anonhg.NetBSD.org/src/rev/53e61f59090c
branches:  trunk
changeset: 1028086:53e61f59090c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:49:14 2021 +0000

description:
Disable linux lockdep for now; matching ww_mutex too painful.

diffstat:

 sys/external/bsd/drm2/include/linux/lockdep.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 2f36fa916299 -r 53e61f59090c sys/external/bsd/drm2/include/linux/lockdep.h
--- a/sys/external/bsd/drm2/include/linux/lockdep.h     Sun Dec 19 01:49:08 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/lockdep.h     Sun Dec 19 01:49:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lockdep.h,v 1.1 2021/12/19 00:54:46 riastradh Exp $    */
+/*     $NetBSD: lockdep.h,v 1.2 2021/12/19 01:49:14 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -38,11 +38,18 @@
 #define        __lockdep_used                  __debugused
 #define        lock_acquire_shared_recursive(l, s, t, n, i)    __nothing
 #define        lock_release(l, n, i)           __nothing
+#ifdef notyet
 #define        lockdep_assert_held(m)          KDASSERT(lockdep_is_held(m))
 #define        lockdep_assert_held_once(m)     KDASSERT(lockdep_is_held(m))
 #define        lockdep_is_held(m)              mutex_owned(__lockdep_kmutex(m))
 #define        might_lock(m)                                                         \
        KDASSERT(mutex_ownable(__lockdep_kmutex(m)))
+#else
+#define        lockdep_assert_held(m)          do {} while (0)
+#define        lockdep_assert_held_once(m)     do {} while (0)
+#define        lockdep_is_held(m)              1
+#define        might_lock(m)                   do {} while (0)
+#endif
 
 #define        __lockdep_kmutex(m)                                                   \
        (__builtin_types_compatible_p(typeof(*(m)), struct mutex) ?           \



Home | Main Index | Thread Index | Old Index