diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-03-09 13:26:48 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-03-09 13:27:05 +0100 |
commit | f35482ee19be7df63c7537fb90d0cbacc46ef495 (patch) | |
tree | 139d05bccc6e91074978f4fbe167e68f3bc543fb /src/compat/compat.h | |
parent | compat: stable kernels are now receiving b87b619 (diff) | |
download | wireguard-linux-compat-f35482ee19be7df63c7537fb90d0cbacc46ef495.tar.xz wireguard-linux-compat-f35482ee19be7df63c7537fb90d0cbacc46ef495.zip |
compat: silence warning on frankenkernels
Some Android 3.18 devices backport this macro.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 86dcfd2..ff6d2f1 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -56,8 +56,11 @@ #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) +#include <linux/rcupdate.h> +#ifndef RCU_LOCKDEP_WARN #define RCU_LOCKDEP_WARN(cond, message) rcu_lockdep_assert(!(cond), message) #endif +#endif #if ((LINUX_VERSION_CODE > KERNEL_VERSION(3, 19, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 6)) || \ (LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 12) && LINUX_VERSION_CODE > KERNEL_VERSION(3, 17, 0)) || \ |