On Sunday, August 12, 2012 16:43:37 Sven Eckelmann wrote:
-#define hlist_first_rcu(head) (*((struct hlist_node **)(&(head)->first))) -#define hlist_next_rcu(node) (*((struct hlist_node **)(&(node)->next))) - -#define __hlist_for_each_rcu(pos, head) \
for (pos = rcu_dereference(hlist_first_rcu(head)); \
pos && ({ prefetch(pos->next); 1; }); \
pos = rcu_dereference(hlist_next_rcu(pos)))
#define rcu_dereference_protected(p, c) (p)
#endif /* < KERNEL_VERSION(2, 6, 34) */
Acked-by: Sven Eckelmann sven@narfation.org
Applied in revision 336d945.
Thanks, Marek