source: GPL/branches/uniaud32-next/include/linux/lockdep.h@ 647

Last change on this file since 647 was 647, checked in by Paul Smedley, 4 years ago

Cleanup headers, fix warnings

File size: 806 bytes
Line 
1#ifndef __LINUX_LOCKDEP_H
2#define __LINUX_LOCKDEP_H
3
4#include <linux/types.h>
5
6#define SINGLE_DEPTH_NESTING 1
7/*
8 * lockdep macros
9 */
10#define lockdep_set_class(lock, key) do { (void)(key); } while (0)
11#define down_read_nested(sem, subclass) down_read(sem)
12#define down_write_nested(sem, subclass) down_write(sem)
13#define down_read_non_owner(sem) down_read(sem)
14#define up_read_non_owner(sem) up_read(sem)
15#define spin_lock_nested(lock, x) spin_lock(lock)
16#define spin_lock_irqsave_nested(lock, f, x) spin_lock_irqsave(lock, f)
17#define lockdep_set_novalidate_class(lock) do { } while (0)
18# define lockdep_set_class_and_name(lock, key, name) \
19 do { (void)(key); (void)(name); } while (0)
20struct lock_class_key {int not_used; };
21#endif /* __LINUX_LOCKDEP_H */
Note: See TracBrowser for help on using the repository browser.