> diff --git a/batman-adv/compat.h b/batman-adv/compat.h
> index a76d0be..29a3203 100644
> --- a/batman-adv/compat.h
> +++ b/batman-adv/compat.h
> @@ -270,4 +270,12 @@ int bat_seq_printf(struct seq_file *m, const char *f, 
> ...);
>  
>  #endif /* < KERNEL_VERSION(2, 6, 33) */
>  
> +#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)))
> +
>  #endif /* _NET_BATMAN_ADV_COMPAT_H_ */
Isn't there a #define with < KERNEL_VERSION(2, 6, 37) missing?
(Haven't checked much else about this patch yet)

Cheers, Linus

Reply via email to