All of lore.kernel.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv: Remove unused hlist macros in compat.h
@ 2012-08-10 13:46 Martin Hundebøll
  2012-08-12 14:43 ` Sven Eckelmann
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Hundebøll @ 2012-08-10 13:46 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Martin Hundebøll

Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
---
 compat.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/compat.h b/compat.h
index 13253dd..8ac22a8 100644
--- a/compat.h
+++ b/compat.h
@@ -67,14 +67,6 @@
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34)
 
-#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) */
-- 
1.7.11.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Remove unused hlist macros in compat.h
  2012-08-10 13:46 [B.A.T.M.A.N.] [PATCH] batman-adv: Remove unused hlist macros in compat.h Martin Hundebøll
@ 2012-08-12 14:43 ` Sven Eckelmann
  2012-08-22  0:12   ` Marek Lindner
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Eckelmann @ 2012-08-12 14:43 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

[-- Attachment #1: Type: text/plain, Size: 919 bytes --]

On Friday 10 August 2012 15:46:32 Martin Hundebøll wrote:
> Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
> ---
>  compat.h | 8 --------
>  1 file changed, 8 deletions(-)
> 
> diff --git a/compat.h b/compat.h
> index 13253dd..8ac22a8 100644
> --- a/compat.h
> +++ b/compat.h
> @@ -67,14 +67,6 @@
> 
>  #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34)
> 
> -#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>

Kind regards,
	Sven

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Remove unused hlist macros in compat.h
  2012-08-12 14:43 ` Sven Eckelmann
@ 2012-08-22  0:12   ` Marek Lindner
  0 siblings, 0 replies; 3+ messages in thread
From: Marek Lindner @ 2012-08-22  0:12 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-22  0:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-10 13:46 [B.A.T.M.A.N.] [PATCH] batman-adv: Remove unused hlist macros in compat.h Martin Hundebøll
2012-08-12 14:43 ` Sven Eckelmann
2012-08-22  0:12   ` Marek Lindner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.