All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] compat: backport rcu_access_pointer
@ 2011-05-16 18:10 Felix Fietkau
  2011-05-16 18:10 ` [PATCH 2/2] compat: backport rtnl_dereference Felix Fietkau
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Fietkau @ 2011-05-16 18:10 UTC (permalink / raw)
  To: lrodriguez; +Cc: linux-wireless

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
 include/linux/compat-2.6.34.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/compat-2.6.34.h b/include/linux/compat-2.6.34.h
index d1f9d80..ad06a07 100644
--- a/include/linux/compat-2.6.34.h
+++ b/include/linux/compat-2.6.34.h
@@ -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)) */
 
-- 
1.7.3.2


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

* [PATCH 2/2] compat: backport rtnl_dereference
  2011-05-16 18:10 [PATCH 1/2] compat: backport rcu_access_pointer Felix Fietkau
@ 2011-05-16 18:10 ` Felix Fietkau
  0 siblings, 0 replies; 2+ messages in thread
From: Felix Fietkau @ 2011-05-16 18:10 UTC (permalink / raw)
  To: lrodriguez; +Cc: linux-wireless

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
 include/linux/compat-2.6.37.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

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 */
-- 
1.7.3.2


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

end of thread, other threads:[~2011-05-16 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-16 18:10 [PATCH 1/2] compat: backport rcu_access_pointer Felix Fietkau
2011-05-16 18:10 ` [PATCH 2/2] compat: backport rtnl_dereference Felix Fietkau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.