From: Ingo Molnar Date: Mon, 3 Jul 2006 07:24:31 +0000 (-0700) Subject: [PATCH] lockdep: remove DEBUG_BUG_ON() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=36596243daf7e1d795c647de04af95e835b8c5b4;p=linux-beck.git [PATCH] lockdep: remove DEBUG_BUG_ON() cleanup: remove unused DEBUG_BUG_ON() defines. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/mutex-debug.h b/kernel/mutex-debug.h index 8417b52ebd65..bdab13a9ee26 100644 --- a/kernel/mutex-debug.h +++ b/kernel/mutex-debug.h @@ -103,17 +103,9 @@ do { \ } \ } while (0) -# define DEBUG_BUG_ON(c) \ -do { \ - if (unlikely(c)) \ - DEBUG_BUG(); \ -} while (0) - #ifdef CONFIG_SMP # define SMP_DEBUG_LOCKS_WARN_ON(c) DEBUG_LOCKS_WARN_ON(c) -# define SMP_DEBUG_BUG_ON(c) DEBUG_BUG_ON(c) #else # define SMP_DEBUG_LOCKS_WARN_ON(c) do { } while (0) -# define SMP_DEBUG_BUG_ON(c) do { } while (0) #endif