Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 2020 09:23:18 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r361193 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <202005180923.04I9NIRI064565@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon May 18 09:23:18 2020
New Revision: 361193
URL: https://svnweb.freebsd.org/changeset/base/361193

Log:
  MFC r360529:
  Implement more lockdep macros in the LinuxKPI.
  
  Submitted by:	ashafer_badland.io (Austin Shafer)
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/lockdep.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/lockdep.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/lockdep.h	Mon May 18 09:22:47 2020	(r361192)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/lockdep.h	Mon May 18 09:23:18 2020	(r361193)
@@ -36,6 +36,7 @@ struct lock_class_key {
 };
 
 #define	lockdep_set_class(lock, key)
+#define	lockdep_set_subclass(lock, sub)
 #define	lockdep_set_class_and_name(lock, key, name)
 #define	lockdep_set_current_reclaim_state(g) do { } while (0)
 #define	lockdep_clear_current_reclaim_state() do { } while (0)
@@ -60,6 +61,7 @@ lockdep_is_held(void *__m)
 	__lock = __m;
 	return (LOCK_CLASS(__lock)->lc_owner(__lock, &__td) != 0);
 }
+#define	lockdep_is_held_type(_m, _t) lockdep_is_held(_m)
 
 #else
 #define	lockdep_assert_held(m) do { } while (0)
@@ -67,6 +69,7 @@ lockdep_is_held(void *__m)
 #define	lockdep_assert_held_once(m) do { } while (0)
 
 #define	lockdep_is_held(m)	1
+#define	lockdep_is_held_type(_m, _t)	1
 #endif
 
 #define	might_lock(m)	do { } while (0)
@@ -75,5 +78,8 @@ lockdep_is_held(void *__m)
 #define	lock_acquire(...) do { } while (0)
 #define	lock_release(...) do { } while (0)
 #define	lock_acquire_shared_recursive(...) do { } while (0)
+
+#define	mutex_acquire(...) do { } while (0)
+#define	mutex_release(...) do { } while (0)
 
 #endif /* _LINUX_LOCKDEP_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005180923.04I9NIRI064565>