From: Hauke Mehrtens Date: Wed, 21 Sep 2011 17:04:23 +0000 (+0200) Subject: compat: add rcu_read_lock_held() X-Git-Tag: compat-2011-09-28~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=45d4203f1e61ee2204a10fae8100bd16d0ecb8ef;p=~emulex%2Fcompat.git compat: add rcu_read_lock_held() just the version without lock debug support is implemented, if you want to debug the logs use a more recent kernel version. Signed-off-by: Hauke Mehrtens --- diff --git a/include/linux/compat-2.6.34.h b/include/linux/compat-2.6.34.h index 7bda52b..0ab344c 100644 --- a/include/linux/compat-2.6.34.h +++ b/include/linux/compat-2.6.34.h @@ -262,6 +262,11 @@ static inline int usb_disable_autosuspend(struct usb_device *udev) #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) #define round_down(x, y) ((x) & ~__round_mask(x, y)) +static inline int rcu_read_lock_held(void) +{ + return 1; +} + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)) */ #endif /* LINUX_26_34_COMPAT_H */