From 844bd647e14ab1c39f8095f9ac7a5b3348a369fe Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Thu, 31 Mar 2011 09:21:32 -0700 Subject: [PATCH] compat: backport netdev_refcnt_read. Backport of upstream commit: 29b4433d991c88d86ca48a4c1cc33c671475be4b net: percpu net_device refcount Signed-off-by: Hauke Mehrtens --- include/linux/compat-2.6.37.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat-2.6.37.h b/include/linux/compat-2.6.37.h index e993f753febb..cee23a896667 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 */ -- 2.30.2