diff options
| author | Ingo Molnar <mingo@kernel.org> | 2015-05-15 02:43:15 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2015-05-15 02:43:15 -0400 |
| commit | 60d5ddeabdda2d6453280efcf172d2429da10eac (patch) | |
| tree | dd20b21e91ff44b5588838641294054296c9e438 | |
| parent | a50750d4dc577c8a49a1eaa8e50727513a0c9c05 (diff) | |
| parent | 2480257fb17ba0fdaf62bc8c2406bd08d5e7f8f1 (diff) | |
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."
Signed-off-by: Ingo Molnar <mingo@kernel.org>
| -rw-r--r-- | tools/lib/lockdep/Makefile | 3 | ||||
| -rw-r--r-- | tools/lib/lockdep/uinclude/linux/kernel.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile index 0c356fb65022..18ffccf00426 100644 --- a/tools/lib/lockdep/Makefile +++ b/tools/lib/lockdep/Makefile | |||
| @@ -14,9 +14,10 @@ define allow-override | |||
| 14 | $(eval $(1) = $(2))) | 14 | $(eval $(1) = $(2))) |
| 15 | endef | 15 | endef |
| 16 | 16 | ||
| 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. |
| 18 | $(call allow-override,CC,$(CROSS_COMPILE)gcc) | 18 | $(call allow-override,CC,$(CROSS_COMPILE)gcc) |
| 19 | $(call allow-override,AR,$(CROSS_COMPILE)ar) | 19 | $(call allow-override,AR,$(CROSS_COMPILE)ar) |
| 20 | $(call allow-override,LD,$(CROSS_COMPILE)ld) | ||
| 20 | 21 | ||
| 21 | INSTALL = install | 22 | INSTALL = install |
| 22 | 23 | ||
diff --git a/tools/lib/lockdep/uinclude/linux/kernel.h b/tools/lib/lockdep/uinclude/linux/kernel.h index a11e3c357be7..cd2cc59a5da7 100644 --- a/tools/lib/lockdep/uinclude/linux/kernel.h +++ b/tools/lib/lockdep/uinclude/linux/kernel.h | |||
| @@ -28,6 +28,9 @@ | |||
| 28 | #define __init | 28 | #define __init |
| 29 | #define noinline | 29 | #define noinline |
| 30 | #define list_add_tail_rcu list_add_tail | 30 | #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() | ||
| 31 | 34 | ||
| 32 | #ifndef CALLER_ADDR0 | 35 | #ifndef CALLER_ADDR0 |
| 33 | #define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0)) | 36 | #define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0)) |
