Skip to contentSkip to conversation

tools/lib/lockdep fixes

GIT PULL Ingo Molnar 1 participant 1 message Mar 3, 2014

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest core-urgent-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-urgent-for-linus

# HEAD: 9b158f53a8da5394cb48310da9fda80b34c72bbc Merge branch 'liblockdep-fixes' of https://github.com/sashalevin/liblockdep into core/urgent

A handful of build fixes for liblockdep.

Thanks,

Ingo

------------------>
Ira W. Snyder (3):
tools/liblockdep: Fix initialization code path tools/liblockdep: Fix include of asm/hash.h tools/liblockdep: Add include directory to allow tests to compile

Sasha Levin (2):
tools/liblockdep: Mark runtests.sh as executable tools/liblockdep: Add a stub for new rcu_is_watching

Wang Nan (1):
tools/liblockdep: Use realpath for srctree and objtree

 tools/lib/lockdep/Makefile             | 6 +++---
 tools/lib/lockdep/preload.c            | 2 +-
 tools/lib/lockdep/run_tests.sh         | 0
 tools/lib/lockdep/uinclude/asm/hash.h  | 6 ++++++
 tools/lib/lockdep/uinclude/linux/rcu.h | 5 +++++
 5 files changed, 15 insertions(+), 4 deletions(-)
 mode change 100644 => 100755 tools/lib/lockdep/run_tests.sh
 create mode 100644 tools/lib/lockdep/uinclude/asm/hash.h
tools/lib/lockdep/Makefile +3 -3
index da8b7aa..07b0b75 100644
@@ -87,8 +87,8 @@ endif # BUILD_SRC
 # We process the rest of the Makefile if this is the final invocation of make
 ifeq ($(skip-makefile),)
 
-srctree		:= $(if $(BUILD_SRC),$(BUILD_SRC),$(CURDIR))
-objtree		:= $(CURDIR)
+srctree		:= $(realpath $(if $(BUILD_SRC),$(BUILD_SRC),$(CURDIR)))
+objtree		:= $(realpath $(CURDIR))
 src		:= $(srctree)
 obj		:= $(objtree)
 
@@ -112,7 +112,7 @@ export Q VERBOSE
 
 LIBLOCKDEP_VERSION = $(LL_VERSION).$(LL_PATCHLEVEL).$(LL_EXTRAVERSION)
 
-INCLUDES = -I. -I/usr/local/include -I./uinclude $(CONFIG_INCLUDES)
+INCLUDES = -I. -I/usr/local/include -I./uinclude -I./include $(CONFIG_INCLUDES)
 
 # Set compile option CFLAGS if not set elsewhere
 CFLAGS ?= -g -DCONFIG_LOCKDEP -DCONFIG_STACKTRACE -DCONFIG_PROVE_LOCKING -DBITS_PER_LONG=__WORDSIZE -DLIBLOCKDEP_VERSION='"$(LIBLOCKDEP_VERSION)"' -rdynamic -O0 -g
tools/lib/lockdep/preload.c +1 -1
index f8465a8..23bd69c 100644
@@ -418,7 +418,7 @@ int pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
 
 __attribute__((constructor)) static void init_preload(void)
 {
-	if (__init_state != done)
+	if (__init_state == done)
 		return;
 
 #ifndef __GLIBC__
tools/lib/lockdep/run_tests.sh +0 -0
old mode 100644
new mode 100755
tools/lib/lockdep/uinclude/asm/hash.h new file +6 -0
new file mode 100644
index 0000000..d82b170b
@@ -0,0 +1,6 @@
+#ifndef __ASM_GENERIC_HASH_H
+#define __ASM_GENERIC_HASH_H
+
+/* Stub */
+
+#endif /* __ASM_GENERIC_HASH_H */
tools/lib/lockdep/uinclude/linux/rcu.h +5 -0
index 4c99fcb..042ee8e 100644
@@ -13,4 +13,9 @@ static inline int rcu_is_cpu_idle(void)
 	return 1;
 }
 
+static inline bool rcu_is_watching(void)
+{
+	return false;
+}
+
 #endif