linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] compat: backport netdev_refcnt_read.
@ 2011-03-31 16:21 Hauke Mehrtens
  2011-03-31 16:21 ` [PATCH 2/4] compat: add support for kernel 2.6.39 Hauke Mehrtens
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Hauke Mehrtens @ 2011-03-31 16:21 UTC (permalink / raw)
  To: mcgrof, lrodriguez; +Cc: linux-wireless, Hauke Mehrtens

Backport of upstream commit:
	29b4433d991c88d86ca48a4c1cc33c671475be4b
	net: percpu net_device refcount

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 include/linux/compat-2.6.37.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/compat-2.6.37.h b/include/linux/compat-2.6.37.h
index e993f75..cee23a8 100644
--- a/include/linux/compat-2.6.37.h
+++ b/include/linux/compat-2.6.37.h
@@ -108,6 +108,8 @@ extern void compat_led_brightness_set(struct led_classdev *led_cdev,
 
 #define alloc_ordered_workqueue(name, flags) create_singlethread_workqueue(name)
 
+#define netdev_refcnt_read(a) atomic_read(&a->refcnt)
+
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) */
 
 #endif /* LINUX_26_37_COMPAT_H */
-- 
1.7.1


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

end of thread, other threads:[~2011-03-31 19:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-31 16:21 [PATCH 1/4] compat: backport netdev_refcnt_read Hauke Mehrtens
2011-03-31 16:21 ` [PATCH 2/4] compat: add support for kernel 2.6.39 Hauke Mehrtens
2011-03-31 16:21 ` [PATCH 3/4] compat: fix build for kernel < 2.6.29 Hauke Mehrtens
2011-03-31 16:21 ` [PATCH 4/4] compat: semaphore.h mpoved from asm/ to linux/ Hauke Mehrtens
2011-03-31 19:17 ` [PATCH 1/4] compat: backport netdev_refcnt_read Luis R. Rodriguez

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