Pull liblockdep fixes from Sasha Levin: "two fixes that deal with compilation errors in liblockdep."
Unified · Split
| @@ -14,9 +14,10 @@ define allow-override · 13 unmodified lines | |||
| 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 | ||
| @@ -28,6 +28,9 @@ · 27 unmodified lines | |||
| 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)) |