From: Andrew Morton Date: Thu, 12 Oct 2006 03:45:23 +0000 (-0400) Subject: Lockdep: fix compile error in drivers/input/serio/serio.c X-Git-Tag: v2.6.19-rc3~152^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07646e217f473a3e6213f8228336a9046833d6aa;p=linux-2.6 Lockdep: fix compile error in drivers/input/serio/serio.c lockdep_set_subclass() was missing in !LOCKDEP case Signed-off-by: Andrew Morton Signed-off-by: Dmitry Torokhov --- diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 14fec2a23b..819f08f131 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -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)