Merge branch 'liblockdep-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorIngo Molnar <mingo@kernel.org>
Mon, 9 Nov 2015 07:45:42 +0000 (08:45 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 9 Nov 2015 07:45:42 +0000 (08:45 +0100)
Pull liblockdep fixes from Sasha Levin:

  " ... three fixes for liblockdep. Just keeping up with kernel
    code changes and new gcc versions."

Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/lib/lockdep/common.c
tools/lib/lockdep/include/liblockdep/common.h
tools/lib/lockdep/uinclude/linux/compiler.h
tools/lib/lockdep/uinclude/linux/lockdep.h

index 8ef602f18a32b9a19c7645488bd2bc8c757c30c6..9be663340f0a4c48e9ec51c996b13c3a8b596fdc 100644 (file)
@@ -18,7 +18,7 @@ __attribute__((constructor)) static void liblockdep_init(void)
 
 __attribute__((destructor)) static void liblockdep_exit(void)
 {
-       debug_check_no_locks_held(&current_obj);
+       debug_check_no_locks_held();
 }
 
 struct task_struct *__curr(void)
index 0bda630027c30324ddf74c021ab8465c749b6833..a60c14b9662aefd6f17b47dec534bce2f53d9f03 100644 (file)
@@ -43,6 +43,8 @@ void lock_acquire(struct lockdep_map *lock, unsigned int subclass,
                        struct lockdep_map *nest_lock, unsigned long ip);
 void lock_release(struct lockdep_map *lock, int nested,
                        unsigned long ip);
+extern void debug_check_no_locks_freed(const void *from, unsigned long len);
+extern void lockdep_init(void);
 
 #define STATIC_LOCKDEP_MAP_INIT(_name, _key) \
        { .name = (_name), .key = (void *)(_key), }
index 7ac838a1f196ca673b441341f5c3976a32b30fdb..6386dc3182a0985a40551d0af980e53102e04c2a 100644 (file)
@@ -3,5 +3,7 @@
 
 #define __used         __attribute__((__unused__))
 #define unlikely
+#define WRITE_ONCE(x, val) x=(val)
+#define RCU_INIT_POINTER(p, v) p=(v)
 
 #endif
index c1552c28507e472159ebd3fecee88811e51ff263..c808c7d02d21c86732c2aab981ccebd0dad71aad 100644 (file)
@@ -6,7 +6,7 @@
 #include <string.h>
 #include <limits.h>
 #include <linux/utsname.h>
-
+#include <linux/compiler.h>
 
 #define MAX_LOCK_DEPTH 2000UL
 
@@ -54,5 +54,6 @@ static struct new_utsname *init_utsname(void)
 #define static_obj(x) 1
 
 #define debug_show_all_locks()
+extern void debug_check_no_locks_held(void);
 
 #endif