From ee8938922962ea5a162351dffb4c588490f807bc Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 9 Apr 2010 19:50:22 +0200 Subject: [PATCH] compat: add rcu_dereference_check Signed-off-by: Felix Fietkau --- include/linux/compat-2.6.34.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat-2.6.34.h b/include/linux/compat-2.6.34.h index 1cb3e06f9482..736a2f08c08f 100644 --- a/include/linux/compat-2.6.34.h +++ b/include/linux/compat-2.6.34.h @@ -162,6 +162,8 @@ static inline void device_unlock(struct device *dev) .prod_id_hash = { 0, 0, (vh3), 0 }, } #endif +#define rcu_dereference_check(p, c) rcu_dereference(p) + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)) */ #endif /* LINUX_26_34_COMPAT_H */ -- 2.30.2