History

Merge branch 'liblockdep-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux into perf/urgent

Pull liblockdep fixes from Sasha Levin: "two fixes that deal with compilation errors in liblockdep."

Ingo Molnar committed 11 years ago

Commit 60d5dde2 parents a50750d 24802572 files · +5 −1Browse files

Unified · Split

2 files
  1. tools/lib/lockdep/Makefile +2 −1
  2. tools/lib/lockdep/uinclude/linux/kernel.h +3 −0
tools/lib/lockdep/Makefile+2−1
@@ -14,9 +14,10 @@ define allow-override · 13 unmodified lines
1414 $(eval $(1) = $(2)))
1515 endef
1616
17−# Allow setting CC and AR, or setting CROSS_COMPILE as a prefix.
17+# Allow setting CC and AR and LD, or setting CROSS_COMPILE as a prefix.
1818 $(call allow-override,CC,$(CROSS_COMPILE)gcc)
1919 $(call allow-override,AR,$(CROSS_COMPILE)ar)
20+$(call allow-override,LD,$(CROSS_COMPILE)ld)
2021
2122 INSTALL = install
2223
tools/lib/lockdep/uinclude/linux/kernel.h+3−0
@@ -28,6 +28,9 @@ · 27 unmodified lines
2828 #define __init
2929 #define noinline
3030 #define list_add_tail_rcu list_add_tail
31+#define list_for_each_entry_rcu list_for_each_entry
32+#define barrier()
33+#define synchronize_sched()
3134
3235 #ifndef CALLER_ADDR0
3336 #define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0))