Add a lockdep macro to the LinuxKPI.
Also fix some nearby style issues. MFC after: 1 week
This commit is contained in:
parent
85ec50508a
commit
33baed9452
@ -28,14 +28,18 @@
|
|||||||
*
|
*
|
||||||
* $FreeBSD$
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
#ifndef _LINUX_LOCKDEP_H_
|
|
||||||
|
#ifndef _LINUX_LOCKDEP_H_
|
||||||
#define _LINUX_LOCKDEP_H_
|
#define _LINUX_LOCKDEP_H_
|
||||||
|
|
||||||
struct lock_class_key {
|
struct lock_class_key {
|
||||||
};
|
};
|
||||||
|
|
||||||
#define lockdep_set_class(lock, key)
|
#define lockdep_set_class(lock, key)
|
||||||
|
|
||||||
#define lockdep_set_class_and_name(lock, key, name)
|
#define lockdep_set_class_and_name(lock, key, name)
|
||||||
|
|
||||||
#endif /* _LINUX_LOCKDEP_H_ */
|
#define lockdep_assert_held_once(m) \
|
||||||
|
sx_assert(&(m)->sx, SA_XLOCKED | SA_NOTRECURSED)
|
||||||
|
|
||||||
|
#endif /* _LINUX_LOCKDEP_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user