From: Paul E. McKenney Date: Thu, 2 Feb 2012 16:26:06 +0000 (-0800) Subject: rcu: Remove redundant check for rcu_head misalignment X-Git-Tag: v3.4-rc1~194^2^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ce5df97be530e4746bf9a4ac14589a1cfdfd8efc;p=karo-tx-linux.git rcu: Remove redundant check for rcu_head misalignment There is now an unconditional check for rcu_head misalignment in __call_rcu(), so remove the old conditional one in debug_rcu_head_queue(). Reported-by: Josh Triplett Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcu.h b/kernel/rcu.h index a074b0b43fc2..30876f4063b6 100644 --- a/kernel/rcu.h +++ b/kernel/rcu.h @@ -50,7 +50,6 @@ extern struct debug_obj_descr rcuhead_debug_descr; static inline void debug_rcu_head_queue(struct rcu_head *head) { - WARN_ON_ONCE((unsigned long)head & 0x3); debug_object_activate(head, &rcuhead_debug_descr); debug_object_active_state(head, &rcuhead_debug_descr, STATE_RCU_HEAD_READY,