lockdep: remove duplicate CONFIG_DEBUG_LOCKDEP definitions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 3, 2009 - 6:03 pm

Gitweb:     http://git.kernel.org/linus/03d78913f01e8f6599823f00357ed17b32747d3d
Commit:     03d78913f01e8f6599823f00357ed17b32747d3d
Parent:     a140feab42d1cfd811930ab76104559c19dfc4b0
Author:     David Rientjes <rientjes@google.com>
AuthorDate: Thu Mar 5 02:29:05 2009 -0800
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Thu Mar 5 11:46:00 2009 +0100

    lockdep: remove duplicate CONFIG_DEBUG_LOCKDEP definitions
    
    Impact: cleanup
    
    The atomic debug modifiers are already defined in
    kernel/lockdep_internals.h.
    
    Signed-off-by: David Rientjes <rientjes@google.com>
    Acked-by: Peter Zijlstra <peterz@infradead.org>
    LKML-Reference: <alpine.DEB.2.00.0903050222160.30401@chino.kir.corp.google.com>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 kernel/lockdep.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index 02014f7..9a1e2bc 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -433,13 +433,6 @@ atomic_t nr_find_usage_forwards_checks;
 atomic_t nr_find_usage_forwards_recursions;
 atomic_t nr_find_usage_backwards_checks;
 atomic_t nr_find_usage_backwards_recursions;
-# define debug_atomic_inc(ptr)		atomic_inc(ptr)
-# define debug_atomic_dec(ptr)		atomic_dec(ptr)
-# define debug_atomic_read(ptr)		atomic_read(ptr)
-#else
-# define debug_atomic_inc(ptr)		do { } while (0)
-# define debug_atomic_dec(ptr)		do { } while (0)
-# define debug_atomic_read(ptr)		0
 #endif
 
 /*
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
lockdep: remove duplicate CONFIG_DEBUG_LOCKDEP definitions, Linux Kernel Mailing ..., (Fri Apr 3, 6:03 pm)