diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-03-10 04:28:27 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-03-10 04:28:27 -0500 |
commit | 6cbe9e4a228ce00b9fa10d56da6cb7985d7b10e9 (patch) | |
tree | f8e52ed2acd6316d0832f084b4c633f1d19079aa /lib | |
parent | 29b75eb2d56a714190a93d7be4525e617591077a (diff) | |
parent | 8e0f93cda48ed054e1216bab5c60017e1a5fc1e8 (diff) |
Merge branch 'linus' into locking/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/list_debug.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/list_debug.c b/lib/list_debug.c index 3345a089ef7b..3859bf63561c 100644 --- a/lib/list_debug.c +++ b/lib/list_debug.c | |||
@@ -12,13 +12,6 @@ | |||
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/rculist.h> | 13 | #include <linux/rculist.h> |
14 | 14 | ||
15 | static struct list_head force_poison; | ||
16 | void list_force_poison(struct list_head *entry) | ||
17 | { | ||
18 | entry->next = &force_poison; | ||
19 | entry->prev = &force_poison; | ||
20 | } | ||
21 | |||
22 | /* | 15 | /* |
23 | * Insert a new entry between two known consecutive entries. | 16 | * Insert a new entry between two known consecutive entries. |
24 | * | 17 | * |
@@ -30,8 +23,6 @@ void __list_add(struct list_head *new, | |||
30 | struct list_head *prev, | 23 | struct list_head *prev, |
31 | struct list_head *next) | 24 | struct list_head *next) |
32 | { | 25 | { |
33 | WARN(new->next == &force_poison || new->prev == &force_poison, | ||
34 | "list_add attempted on force-poisoned entry\n"); | ||
35 | WARN(next->prev != prev, | 26 | WARN(next->prev != prev, |
36 | "list_add corruption. next->prev should be " | 27 | "list_add corruption. next->prev should be " |
37 | "prev (%p), but was %p. (next=%p).\n", | 28 | "prev (%p), but was %p. (next=%p).\n", |