1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Runtime locking correctness validator
5 * Copyright (C) 2006,2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
6 * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra
8 * see Documentation/locking/lockdep-design.rst for more details.
10 #ifndef __LINUX_LOCKDEP_H
11 #define __LINUX_LOCKDEP_H
13 #include <linux/lockdep_types.h>
14 #include <linux/smp.h>
15 #include <asm/percpu.h>
21 #include <linux/linkage.h>
22 #include <linux/list.h>
23 #include <linux/debug_locks.h>
24 #include <linux/stacktrace.h>
26 static inline void lockdep_copy_map(struct lockdep_map *to,
27 struct lockdep_map *from)
33 * Since the class cache can be modified concurrently we could observe
34 * half pointers (64bit arch using 32bit copy insns). Therefore clear
35 * the caches and take the performance hit.
37 * XXX it doesn't work well with lockdep_set_class_and_subclass(), since
38 * that relies on cache abuse.
40 for (i = 0; i < NR_LOCKDEP_CACHING_CLASSES; i++)
41 to->class_cache[i] = NULL;
45 * Every lock has a list of other locks that were taken after it.
46 * We only grow the list, never remove from it:
49 struct list_head entry;
50 struct lock_class *class;
51 struct lock_class *links_to;
52 const struct lock_trace *trace;
54 /* bitmap of different dependencies from head to this */
56 /* used by BFS to record whether "prev -> this" only has -(*R)-> */
60 * The parent field is used to implement breadth-first search, and the
61 * bit 0 is reused to indicate if the lock has been accessed in BFS.
63 struct lock_list *parent;
67 * struct lock_chain - lock dependency chain record
69 * @irq_context: the same as irq_context in held_lock below
70 * @depth: the number of held locks in this chain
71 * @base: the index in chain_hlocks for this chain
72 * @entry: the collided lock chains in lock_chain hash list
73 * @chain_key: the hash key of this lock_chain
76 /* see BUILD_BUG_ON()s in add_chain_cache() */
77 unsigned int irq_context : 2,
81 struct hlist_node entry;
85 #define MAX_LOCKDEP_KEYS_BITS 13
86 #define MAX_LOCKDEP_KEYS (1UL << MAX_LOCKDEP_KEYS_BITS)
87 #define INITIAL_CHAIN_KEY -1
91 * One-way hash of the dependency chain up to this point. We
92 * hash the hashes step by step as the dependency chain grows.
94 * We use it for dependency-caching and we skip detection
95 * passes and dependency-updates if there is a cache-hit, so
96 * it is absolutely critical for 100% coverage of the validator
97 * to have a unique key value for every unique dependency path
98 * that can occur in the system, to make a unique hash value
99 * as likely as possible - hence the 64-bit width.
101 * The task struct holds the current hash value (initialized
102 * with zero), here we store the previous hash value:
105 unsigned long acquire_ip;
106 struct lockdep_map *instance;
107 struct lockdep_map *nest_lock;
108 #ifdef CONFIG_LOCK_STAT
113 * class_idx is zero-indexed; it points to the element in
114 * lock_classes this held lock instance belongs to. class_idx is in
115 * the range from 0 to (MAX_LOCKDEP_KEYS-1) inclusive.
117 unsigned int class_idx:MAX_LOCKDEP_KEYS_BITS;
119 * The lock-stack is unified in that the lock chains of interrupt
120 * contexts nest ontop of process context chains, but we 'separate'
121 * the hashes by starting with 0 if we cross into an interrupt
122 * context, and we also keep do not add cross-context lock
123 * dependencies - the lock usage graph walking covers that area
124 * anyway, and we'd just unnecessarily increase the number of
125 * dependencies otherwise. [Note: hardirq and softirq contexts
126 * are separated from each other too.]
128 * The following field is used to detect when we cross into an
131 unsigned int irq_context:2; /* bit 0 - soft, bit 1 - hard */
132 unsigned int trylock:1; /* 16 bits */
134 unsigned int read:2; /* see lock_acquire() comment */
135 unsigned int check:1; /* see lock_acquire() comment */
136 unsigned int hardirqs_off:1;
138 unsigned int references:11; /* 32 bits */
139 unsigned int pin_count;
143 * Initialization, self-test and debugging-output methods:
145 extern void lockdep_init(void);
146 extern void lockdep_reset(void);
147 extern void lockdep_reset_lock(struct lockdep_map *lock);
148 extern void lockdep_free_key_range(void *start, unsigned long size);
149 extern asmlinkage void lockdep_sys_exit(void);
150 extern void lockdep_set_selftest_task(struct task_struct *task);
152 extern void lockdep_init_task(struct task_struct *task);
155 * Split the recursion counter in two to readily detect 'off' vs recursion.
157 #define LOCKDEP_RECURSION_BITS 16
158 #define LOCKDEP_OFF (1U << LOCKDEP_RECURSION_BITS)
159 #define LOCKDEP_RECURSION_MASK (LOCKDEP_OFF - 1)
162 * lockdep_{off,on}() are macros to avoid tracing and kprobes; not inlines due
163 * to header dependencies.
166 #define lockdep_off() \
168 current->lockdep_recursion += LOCKDEP_OFF; \
171 #define lockdep_on() \
173 current->lockdep_recursion -= LOCKDEP_OFF; \
176 extern void lockdep_register_key(struct lock_class_key *key);
177 extern void lockdep_unregister_key(struct lock_class_key *key);
180 * These methods are used by specific locking variants (spinlocks,
181 * rwlocks, mutexes and rwsems) to pass init/acquire/release events
185 extern void lockdep_init_map_type(struct lockdep_map *lock, const char *name,
186 struct lock_class_key *key, int subclass, u8 inner, u8 outer, u8 lock_type);
189 lockdep_init_map_waits(struct lockdep_map *lock, const char *name,
190 struct lock_class_key *key, int subclass, u8 inner, u8 outer)
192 lockdep_init_map_type(lock, name, key, subclass, inner, outer, LD_LOCK_NORMAL);
196 lockdep_init_map_wait(struct lockdep_map *lock, const char *name,
197 struct lock_class_key *key, int subclass, u8 inner)
199 lockdep_init_map_waits(lock, name, key, subclass, inner, LD_WAIT_INV);
202 static inline void lockdep_init_map(struct lockdep_map *lock, const char *name,
203 struct lock_class_key *key, int subclass)
205 lockdep_init_map_wait(lock, name, key, subclass, LD_WAIT_INV);
209 * Reinitialize a lock key - for cases where there is special locking or
210 * special initialization of locks so that the validator gets the scope
211 * of dependencies wrong: they are either too broad (they need a class-split)
212 * or they are too narrow (they suffer from a false class-split):
214 #define lockdep_set_class(lock, key) \
215 lockdep_init_map_type(&(lock)->dep_map, #key, key, 0, \
216 (lock)->dep_map.wait_type_inner, \
217 (lock)->dep_map.wait_type_outer, \
218 (lock)->dep_map.lock_type)
220 #define lockdep_set_class_and_name(lock, key, name) \
221 lockdep_init_map_type(&(lock)->dep_map, name, key, 0, \
222 (lock)->dep_map.wait_type_inner, \
223 (lock)->dep_map.wait_type_outer, \
224 (lock)->dep_map.lock_type)
226 #define lockdep_set_class_and_subclass(lock, key, sub) \
227 lockdep_init_map_type(&(lock)->dep_map, #key, key, sub, \
228 (lock)->dep_map.wait_type_inner, \
229 (lock)->dep_map.wait_type_outer, \
230 (lock)->dep_map.lock_type)
232 #define lockdep_set_subclass(lock, sub) \
233 lockdep_init_map_type(&(lock)->dep_map, #lock, (lock)->dep_map.key, sub,\
234 (lock)->dep_map.wait_type_inner, \
235 (lock)->dep_map.wait_type_outer, \
236 (lock)->dep_map.lock_type)
238 #define lockdep_set_novalidate_class(lock) \
239 lockdep_set_class_and_name(lock, &__lockdep_no_validate__, #lock)
242 * Compare locking classes
244 #define lockdep_match_class(lock, key) lockdep_match_key(&(lock)->dep_map, key)
246 static inline int lockdep_match_key(struct lockdep_map *lock,
247 struct lock_class_key *key)
249 return lock->key == key;
257 * 0: exclusive (write) acquire
258 * 1: read-acquire (no recursion allowed)
259 * 2: read-acquire with same-instance recursion allowed
263 * 0: simple checks (freeing, held-at-exit-time, etc.)
266 extern void lock_acquire(struct lockdep_map *lock, unsigned int subclass,
267 int trylock, int read, int check,
268 struct lockdep_map *nest_lock, unsigned long ip);
270 extern void lock_release(struct lockdep_map *lock, unsigned long ip);
272 extern void lock_sync(struct lockdep_map *lock, unsigned int subclass,
273 int read, int check, struct lockdep_map *nest_lock,
276 /* lock_is_held_type() returns */
277 #define LOCK_STATE_UNKNOWN -1
278 #define LOCK_STATE_NOT_HELD 0
279 #define LOCK_STATE_HELD 1
282 * Same "read" as for lock_acquire(), except -1 means any.
284 extern int lock_is_held_type(const struct lockdep_map *lock, int read);
286 static inline int lock_is_held(const struct lockdep_map *lock)
288 return lock_is_held_type(lock, -1);
291 #define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map)
292 #define lockdep_is_held_type(lock, r) lock_is_held_type(&(lock)->dep_map, (r))
294 extern void lock_set_class(struct lockdep_map *lock, const char *name,
295 struct lock_class_key *key, unsigned int subclass,
298 #define lock_set_novalidate_class(l, n, i) \
299 lock_set_class(l, n, &__lockdep_no_validate__, 0, i)
301 static inline void lock_set_subclass(struct lockdep_map *lock,
302 unsigned int subclass, unsigned long ip)
304 lock_set_class(lock, lock->name, lock->key, subclass, ip);
307 extern void lock_downgrade(struct lockdep_map *lock, unsigned long ip);
309 #define NIL_COOKIE (struct pin_cookie){ .val = 0U, }
311 extern struct pin_cookie lock_pin_lock(struct lockdep_map *lock);
312 extern void lock_repin_lock(struct lockdep_map *lock, struct pin_cookie);
313 extern void lock_unpin_lock(struct lockdep_map *lock, struct pin_cookie);
315 #define lockdep_depth(tsk) (debug_locks ? (tsk)->lockdep_depth : 0)
317 #define lockdep_assert(cond) \
318 do { WARN_ON(debug_locks && !(cond)); } while (0)
320 #define lockdep_assert_once(cond) \
321 do { WARN_ON_ONCE(debug_locks && !(cond)); } while (0)
323 #define lockdep_assert_held(l) \
324 lockdep_assert(lockdep_is_held(l) != LOCK_STATE_NOT_HELD)
326 #define lockdep_assert_not_held(l) \
327 lockdep_assert(lockdep_is_held(l) != LOCK_STATE_HELD)
329 #define lockdep_assert_held_write(l) \
330 lockdep_assert(lockdep_is_held_type(l, 0))
332 #define lockdep_assert_held_read(l) \
333 lockdep_assert(lockdep_is_held_type(l, 1))
335 #define lockdep_assert_held_once(l) \
336 lockdep_assert_once(lockdep_is_held(l) != LOCK_STATE_NOT_HELD)
338 #define lockdep_assert_none_held_once() \
339 lockdep_assert_once(!current->lockdep_depth)
341 #define lockdep_recursing(tsk) ((tsk)->lockdep_recursion)
343 #define lockdep_pin_lock(l) lock_pin_lock(&(l)->dep_map)
344 #define lockdep_repin_lock(l,c) lock_repin_lock(&(l)->dep_map, (c))
345 #define lockdep_unpin_lock(l,c) lock_unpin_lock(&(l)->dep_map, (c))
347 #else /* !CONFIG_LOCKDEP */
349 static inline void lockdep_init_task(struct task_struct *task)
353 static inline void lockdep_off(void)
357 static inline void lockdep_on(void)
361 static inline void lockdep_set_selftest_task(struct task_struct *task)
365 # define lock_acquire(l, s, t, r, c, n, i) do { } while (0)
366 # define lock_release(l, i) do { } while (0)
367 # define lock_downgrade(l, i) do { } while (0)
368 # define lock_set_class(l, n, key, s, i) do { (void)(key); } while (0)
369 # define lock_set_novalidate_class(l, n, i) do { } while (0)
370 # define lock_set_subclass(l, s, i) do { } while (0)
371 # define lockdep_init() do { } while (0)
372 # define lockdep_init_map_type(lock, name, key, sub, inner, outer, type) \
373 do { (void)(name); (void)(key); } while (0)
374 # define lockdep_init_map_waits(lock, name, key, sub, inner, outer) \
375 do { (void)(name); (void)(key); } while (0)
376 # define lockdep_init_map_wait(lock, name, key, sub, inner) \
377 do { (void)(name); (void)(key); } while (0)
378 # define lockdep_init_map(lock, name, key, sub) \
379 do { (void)(name); (void)(key); } while (0)
380 # define lockdep_set_class(lock, key) do { (void)(key); } while (0)
381 # define lockdep_set_class_and_name(lock, key, name) \
382 do { (void)(key); (void)(name); } while (0)
383 #define lockdep_set_class_and_subclass(lock, key, sub) \
384 do { (void)(key); } while (0)
385 #define lockdep_set_subclass(lock, sub) do { } while (0)
387 #define lockdep_set_novalidate_class(lock) do { } while (0)
390 * We don't define lockdep_match_class() and lockdep_match_key() for !LOCKDEP
391 * case since the result is not well defined and the caller should rather
392 * #ifdef the call himself.
395 # define lockdep_reset() do { debug_locks = 1; } while (0)
396 # define lockdep_free_key_range(start, size) do { } while (0)
397 # define lockdep_sys_exit() do { } while (0)
399 static inline void lockdep_register_key(struct lock_class_key *key)
403 static inline void lockdep_unregister_key(struct lock_class_key *key)
407 #define lockdep_depth(tsk) (0)
410 * Dummy forward declarations, allow users to write less ifdef-y code
411 * and depend on dead code elimination.
413 extern int lock_is_held(const void *);
414 extern int lockdep_is_held(const void *);
415 #define lockdep_is_held_type(l, r) (1)
417 #define lockdep_assert(c) do { } while (0)
418 #define lockdep_assert_once(c) do { } while (0)
420 #define lockdep_assert_held(l) do { (void)(l); } while (0)
421 #define lockdep_assert_not_held(l) do { (void)(l); } while (0)
422 #define lockdep_assert_held_write(l) do { (void)(l); } while (0)
423 #define lockdep_assert_held_read(l) do { (void)(l); } while (0)
424 #define lockdep_assert_held_once(l) do { (void)(l); } while (0)
425 #define lockdep_assert_none_held_once() do { } while (0)
427 #define lockdep_recursing(tsk) (0)
429 #define NIL_COOKIE (struct pin_cookie){ }
431 #define lockdep_pin_lock(l) ({ struct pin_cookie cookie = { }; cookie; })
432 #define lockdep_repin_lock(l, c) do { (void)(l); (void)(c); } while (0)
433 #define lockdep_unpin_lock(l, c) do { (void)(l); (void)(c); } while (0)
435 #endif /* !LOCKDEP */
437 #ifdef CONFIG_PROVE_LOCKING
438 void lockdep_set_lock_cmp_fn(struct lockdep_map *, lock_cmp_fn, lock_print_fn);
440 #define lock_set_cmp_fn(lock, ...) lockdep_set_lock_cmp_fn(&(lock)->dep_map, __VA_ARGS__)
442 #define lock_set_cmp_fn(lock, ...) do { } while (0)
445 enum xhlock_context_t {
452 * To initialize a lockdep_map statically use this macro.
453 * Note that _name must not be NULL.
455 #define STATIC_LOCKDEP_MAP_INIT(_name, _key) \
456 { .name = (_name), .key = (void *)(_key), }
458 static inline void lockdep_invariant_state(bool force) {}
459 static inline void lockdep_free_task(struct task_struct *task) {}
461 #ifdef CONFIG_LOCK_STAT
463 extern void lock_contended(struct lockdep_map *lock, unsigned long ip);
464 extern void lock_acquired(struct lockdep_map *lock, unsigned long ip);
466 #define LOCK_CONTENDED(_lock, try, lock) \
469 lock_contended(&(_lock)->dep_map, _RET_IP_); \
472 lock_acquired(&(_lock)->dep_map, _RET_IP_); \
475 #define LOCK_CONTENDED_RETURN(_lock, try, lock) \
479 lock_contended(&(_lock)->dep_map, _RET_IP_); \
480 ____err = lock(_lock); \
483 lock_acquired(&(_lock)->dep_map, _RET_IP_); \
487 #else /* CONFIG_LOCK_STAT */
489 #define lock_contended(lockdep_map, ip) do {} while (0)
490 #define lock_acquired(lockdep_map, ip) do {} while (0)
492 #define LOCK_CONTENDED(_lock, try, lock) \
495 #define LOCK_CONTENDED_RETURN(_lock, try, lock) \
498 #endif /* CONFIG_LOCK_STAT */
500 #ifdef CONFIG_PROVE_LOCKING
501 extern void print_irqtrace_events(struct task_struct *curr);
503 static inline void print_irqtrace_events(struct task_struct *curr)
508 /* Variable used to make lockdep treat read_lock() as recursive in selftests */
509 #ifdef CONFIG_DEBUG_LOCKING_API_SELFTESTS
510 extern unsigned int force_read_lock_recursive;
511 #else /* CONFIG_DEBUG_LOCKING_API_SELFTESTS */
512 #define force_read_lock_recursive 0
513 #endif /* CONFIG_DEBUG_LOCKING_API_SELFTESTS */
515 #ifdef CONFIG_LOCKDEP
516 extern bool read_lock_is_recursive(void);
517 #else /* CONFIG_LOCKDEP */
518 /* If !LOCKDEP, the value is meaningless */
519 #define read_lock_is_recursive() 0
523 * For trivial one-depth nesting of a lock-class, the following
524 * global define can be used. (Subsystems with multiple levels
525 * of nesting should define their own lock-nesting subclasses.)
527 #define SINGLE_DEPTH_NESTING 1
530 * Map the dependency ops to NOP or to real lockdep ops, depending
531 * on the per lock-class debug mode:
534 #define lock_acquire_exclusive(l, s, t, n, i) lock_acquire(l, s, t, 0, 1, n, i)
535 #define lock_acquire_shared(l, s, t, n, i) lock_acquire(l, s, t, 1, 1, n, i)
536 #define lock_acquire_shared_recursive(l, s, t, n, i) lock_acquire(l, s, t, 2, 1, n, i)
538 #define spin_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i)
539 #define spin_acquire_nest(l, s, t, n, i) lock_acquire_exclusive(l, s, t, n, i)
540 #define spin_release(l, i) lock_release(l, i)
542 #define rwlock_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i)
543 #define rwlock_acquire_read(l, s, t, i) \
545 if (read_lock_is_recursive()) \
546 lock_acquire_shared_recursive(l, s, t, NULL, i); \
548 lock_acquire_shared(l, s, t, NULL, i); \
551 #define rwlock_release(l, i) lock_release(l, i)
553 #define seqcount_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i)
554 #define seqcount_acquire_read(l, s, t, i) lock_acquire_shared_recursive(l, s, t, NULL, i)
555 #define seqcount_release(l, i) lock_release(l, i)
557 #define mutex_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i)
558 #define mutex_acquire_nest(l, s, t, n, i) lock_acquire_exclusive(l, s, t, n, i)
559 #define mutex_release(l, i) lock_release(l, i)
561 #define rwsem_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i)
562 #define rwsem_acquire_nest(l, s, t, n, i) lock_acquire_exclusive(l, s, t, n, i)
563 #define rwsem_acquire_read(l, s, t, i) lock_acquire_shared(l, s, t, NULL, i)
564 #define rwsem_release(l, i) lock_release(l, i)
566 #define lock_map_acquire(l) lock_acquire_exclusive(l, 0, 0, NULL, _THIS_IP_)
567 #define lock_map_acquire_read(l) lock_acquire_shared_recursive(l, 0, 0, NULL, _THIS_IP_)
568 #define lock_map_acquire_tryread(l) lock_acquire_shared_recursive(l, 0, 1, NULL, _THIS_IP_)
569 #define lock_map_release(l) lock_release(l, _THIS_IP_)
570 #define lock_map_sync(l) lock_sync(l, 0, 0, 1, NULL, _THIS_IP_)
572 #ifdef CONFIG_PROVE_LOCKING
573 # define might_lock(lock) \
575 typecheck(struct lockdep_map *, &(lock)->dep_map); \
576 lock_acquire(&(lock)->dep_map, 0, 0, 0, 1, NULL, _THIS_IP_); \
577 lock_release(&(lock)->dep_map, _THIS_IP_); \
579 # define might_lock_read(lock) \
581 typecheck(struct lockdep_map *, &(lock)->dep_map); \
582 lock_acquire(&(lock)->dep_map, 0, 0, 1, 1, NULL, _THIS_IP_); \
583 lock_release(&(lock)->dep_map, _THIS_IP_); \
585 # define might_lock_nested(lock, subclass) \
587 typecheck(struct lockdep_map *, &(lock)->dep_map); \
588 lock_acquire(&(lock)->dep_map, subclass, 0, 1, 1, NULL, \
590 lock_release(&(lock)->dep_map, _THIS_IP_); \
593 DECLARE_PER_CPU(int, hardirqs_enabled);
594 DECLARE_PER_CPU(int, hardirq_context);
595 DECLARE_PER_CPU(unsigned int, lockdep_recursion);
597 #define __lockdep_enabled (debug_locks && !this_cpu_read(lockdep_recursion))
599 #define lockdep_assert_irqs_enabled() \
601 WARN_ON_ONCE(__lockdep_enabled && !this_cpu_read(hardirqs_enabled)); \
604 #define lockdep_assert_irqs_disabled() \
606 WARN_ON_ONCE(__lockdep_enabled && this_cpu_read(hardirqs_enabled)); \
609 #define lockdep_assert_in_irq() \
611 WARN_ON_ONCE(__lockdep_enabled && !this_cpu_read(hardirq_context)); \
614 #define lockdep_assert_preemption_enabled() \
616 WARN_ON_ONCE(IS_ENABLED(CONFIG_PREEMPT_COUNT) && \
617 __lockdep_enabled && \
618 (preempt_count() != 0 || \
619 !this_cpu_read(hardirqs_enabled))); \
622 #define lockdep_assert_preemption_disabled() \
624 WARN_ON_ONCE(IS_ENABLED(CONFIG_PREEMPT_COUNT) && \
625 __lockdep_enabled && \
626 (preempt_count() == 0 && \
627 this_cpu_read(hardirqs_enabled))); \
631 * Acceptable for protecting per-CPU resources accessed from BH.
632 * Much like in_softirq() - semantics are ambiguous, use carefully.
634 #define lockdep_assert_in_softirq() \
636 WARN_ON_ONCE(__lockdep_enabled && \
637 (!in_softirq() || in_irq() || in_nmi())); \
641 # define might_lock(lock) do { } while (0)
642 # define might_lock_read(lock) do { } while (0)
643 # define might_lock_nested(lock, subclass) do { } while (0)
645 # define lockdep_assert_irqs_enabled() do { } while (0)
646 # define lockdep_assert_irqs_disabled() do { } while (0)
647 # define lockdep_assert_in_irq() do { } while (0)
649 # define lockdep_assert_preemption_enabled() do { } while (0)
650 # define lockdep_assert_preemption_disabled() do { } while (0)
651 # define lockdep_assert_in_softirq() do { } while (0)
654 #ifdef CONFIG_PROVE_RAW_LOCK_NESTING
656 # define lockdep_assert_RT_in_threaded_ctx() do { \
657 WARN_ONCE(debug_locks && !current->lockdep_recursion && \
658 lockdep_hardirq_context() && \
659 !(current->hardirq_threaded || current->irq_config), \
660 "Not in threaded context on PREEMPT_RT as expected\n"); \
665 # define lockdep_assert_RT_in_threaded_ctx() do { } while (0)
669 #ifdef CONFIG_LOCKDEP
670 void lockdep_rcu_suspicious(const char *file, const int line, const char *s);
673 lockdep_rcu_suspicious(const char *file, const int line, const char *s)
678 #endif /* __LINUX_LOCKDEP_H */