1961a6190SFrançois Tigeot /*
2*a85cb24fSFrançois Tigeot * Copyright (c) 2015-2020 François Tigeot <ftigeot@wolfpond.org>
3961a6190SFrançois Tigeot * All rights reserved.
4961a6190SFrançois Tigeot *
5961a6190SFrançois Tigeot * Redistribution and use in source and binary forms, with or without
6961a6190SFrançois Tigeot * modification, are permitted provided that the following conditions
7961a6190SFrançois Tigeot * are met:
8961a6190SFrançois Tigeot * 1. Redistributions of source code must retain the above copyright
9961a6190SFrançois Tigeot * notice unmodified, this list of conditions, and the following
10961a6190SFrançois Tigeot * disclaimer.
11961a6190SFrançois Tigeot * 2. Redistributions in binary form must reproduce the above copyright
12961a6190SFrançois Tigeot * notice, this list of conditions and the following disclaimer in the
13961a6190SFrançois Tigeot * documentation and/or other materials provided with the distribution.
14961a6190SFrançois Tigeot *
15961a6190SFrançois Tigeot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16961a6190SFrançois Tigeot * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17961a6190SFrançois Tigeot * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18961a6190SFrançois Tigeot * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19961a6190SFrançois Tigeot * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20961a6190SFrançois Tigeot * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21961a6190SFrançois Tigeot * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22961a6190SFrançois Tigeot * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23961a6190SFrançois Tigeot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24961a6190SFrançois Tigeot * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25961a6190SFrançois Tigeot */
26961a6190SFrançois Tigeot
27961a6190SFrançois Tigeot #ifndef _LINUX_LOCKDEP_H_
28961a6190SFrançois Tigeot #define _LINUX_LOCKDEP_H_
29961a6190SFrançois Tigeot
30*a85cb24fSFrançois Tigeot #include <linux/linkage.h>
31*a85cb24fSFrançois Tigeot #include <linux/list.h>
32*a85cb24fSFrançois Tigeot
33e6a0288bSFrançois Tigeot #include <sys/lock.h>
34e6a0288bSFrançois Tigeot
35961a6190SFrançois Tigeot static inline void
lockdep_assert_held(struct lock * l)36961a6190SFrançois Tigeot lockdep_assert_held(struct lock *l)
37961a6190SFrançois Tigeot {
38e6a0288bSFrançois Tigeot KKASSERT(lockinuse(l));
39961a6190SFrançois Tigeot }
40961a6190SFrançois Tigeot
411d180076Szrj #define might_lock(lock) do { } while (0)
4219c468b4SFrançois Tigeot
433306aed3SFrançois Tigeot struct lock_class_key {
443306aed3SFrançois Tigeot };
453306aed3SFrançois Tigeot
46*a85cb24fSFrançois Tigeot #define lock_acquire_shared_recursive(lock, b, c, d, e) do {} while (0)
47*a85cb24fSFrançois Tigeot #define lock_release(lock, b, c) do {} while (0)
48*a85cb24fSFrançois Tigeot
49961a6190SFrançois Tigeot #endif /* _LINUX_LOCKDEP_H_ */
50