b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv add compat code for consume_skb
@ 2014-02-17  8:29 Antonio Quartulli
  2014-02-20 10:56 ` Marek Lindner
  0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartulli @ 2014-02-17  8:29 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

consume_skb() has been implemented in 2.6.30, therefore some
some compat code is needed for 2.6.29. This patch adds it.

Introduced by 9289542085d7e298b90c7b6fb6efb509dab69d8b
("batman-adv: free skb on TVLV parsing success")

Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
---
 compat.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/compat.h b/compat.h
index deea92b..94407a6 100644
--- a/compat.h
+++ b/compat.h
@@ -26,6 +26,8 @@
 
 #include <linux/version.h>	/* LINUX_VERSION_CODE */
 
+#define consume_skb(_skb) kfree_skb(_skb)
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
 
 #undef __alloc_percpu
-- 
1.8.5.3


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

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv add compat code for consume_skb
  2014-02-17  8:29 [B.A.T.M.A.N.] [PATCH] batman-adv add compat code for consume_skb Antonio Quartulli
@ 2014-02-20 10:56 ` Marek Lindner
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2014-02-20 10:56 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

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

On Monday 17 February 2014 09:29:32 Antonio Quartulli wrote:
> consume_skb() has been implemented in 2.6.30, therefore some
> some compat code is needed for 2.6.29. This patch adds it.
> 
> Introduced by 9289542085d7e298b90c7b6fb6efb509dab69d8b
> ("batman-adv: free skb on TVLV parsing success")
> 
> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
> ---
>  compat.h | 2 ++
>  1 file changed, 2 insertions(+)

Applied in revision 15fb0fa.

Thanks,
Marek

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

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

end of thread, other threads:[~2014-02-20 10:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-17  8:29 [B.A.T.M.A.N.] [PATCH] batman-adv add compat code for consume_skb Antonio Quartulli
2014-02-20 10:56 ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).