linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 10/13] Add compatibility call for dev_get_stats()
@ 2009-11-24  2:25 Arnaud Lacombe
  0 siblings, 0 replies; only message in thread
From: Arnaud Lacombe @ 2009-11-24  2:25 UTC (permalink / raw)
  To: mcgrof; +Cc: linux-wireless, lrodriguez

Added on commit eeda3fd6 by Stephen Hemminger in include/linux/netdevice.h.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
---
 compat-2.6.29.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/compat-2.6.29.h b/compat-2.6.29.h
index ff97b37..cad5e6b 100644
--- a/compat-2.6.29.h
+++ b/compat-2.6.29.h
@@ -6,6 +6,7 @@

 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))

+#include <linux/netdevice.h>
 #include <linux/skbuff.h>
 #include <linux/usb.h>

@@ -40,6 +41,12 @@ static inline struct sk_buff *skb_queue_prev(const
struct sk_buff_head *list,
 	return skb->prev;
 }

+
+static inline struct net_device_stats *dev_get_stats(struct net_device
*dev)
+{
+	return dev->get_stats(dev);
+}
+
 extern void usb_unpoison_anchored_urbs(struct usb_anchor *anchor);

 #define DIV_ROUND_CLOSEST(x, divisor)(			\
-- 
1.6.3.3.385.g60647.dirty



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-24  2:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-24  2:25 [PATCH 10/13] Add compatibility call for dev_get_stats() Arnaud Lacombe

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).