From: Hauke Mehrtens Date: Thu, 31 Mar 2011 16:21:32 +0000 (-0700) Subject: compat: backport netdev_refcnt_read. X-Git-Tag: compat-2011-05-19~19 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=844bd647e14ab1c39f8095f9ac7a5b3348a369fe;p=~tnikolova%2Fcompat%2F.git compat: backport netdev_refcnt_read. Backport of upstream commit: 29b4433d991c88d86ca48a4c1cc33c671475be4b net: percpu net_device refcount Signed-off-by: Hauke Mehrtens --- 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 */