From: Felix Fietkau Date: Mon, 16 May 2011 18:10:19 +0000 (+0200) Subject: compat: backport rtnl_dereference X-Git-Tag: compat-2011-05-19^0 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=23f6b43c2a450243de61334e482d20c833b4affb;p=~tnikolova%2Fcompat%2F.git compat: backport rtnl_dereference Signed-off-by: Felix Fietkau --- diff --git a/include/linux/compat-2.6.37.h b/include/linux/compat-2.6.37.h index 57868f5..a83c9c7 100644 --- a/include/linux/compat-2.6.37.h +++ b/include/linux/compat-2.6.37.h @@ -112,6 +112,9 @@ extern void compat_led_brightness_set(struct led_classdev *led_cdev, extern void *vzalloc(unsigned long size); +#define rtnl_dereference(p) \ + rcu_dereference_protected(p, lockdep_rtnl_is_held()) + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) */ #endif /* LINUX_26_37_COMPAT_H */