compat: backport rcu_access_pointer
PATCH 1/2 compat: backport rcu_access_pointer
Signed-off-by Felix Fietkau <[email protected]>
--- include/linux/compat-2.6.34.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/compat-2.6.34.h +1 -0
@@ -247,6 +247,7 @@ static inline int usb_disable_autosuspend(struct usb_device *udev)#define sdio_set_host_pm_flags (a, b) 0#define rcu_dereference_protected (p, c) (p) +#define rcu_access_pointer (p) ACCESS_ONCE(p)#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)) */
Signature · 1 line
1.7.3.2
PATCH 2/2 compat: backport rtnl_dereference
Signed-off-by Felix Fietkau <[email protected]>
--- include/linux/compat-2.6.37.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
include/linux/compat-2.6.37.h +3 -0
@@ -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 */
Signature · 1 line
1.7.3.2