Skip to content

Commit

Permalink
Lockdep: fix compile error in drivers/input/serio/serio.c
Browse files Browse the repository at this point in the history
lockdep_set_subclass() was missing in !LOCKDEP case

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Andrew Morton authored and Dmitry Torokhov committed Oct 12, 2006
1 parent 88aa010 commit 07646e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/lockdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ static inline int lockdep_internal(void)
do { (void)(key); } while (0)
#define lockdep_set_class_and_subclass(lock, key, sub) \
do { (void)(key); } while (0)
#define lockdep_set_subclass(lock, sub) do { } while (0)

# define INIT_LOCKDEP
# define lockdep_reset() do { debug_locks = 1; } while (0)
# define lockdep_free_key_range(start, size) do { } while (0)
Expand Down

0 comments on commit 07646e2

Please sign in to comment.