From 3102d284b5cdb7eb1faede92a357c28b385093e6 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 9 Mar 2018 13:26:48 +0100 Subject: compat: silence warning on frankenkernels Some Android 3.18 devices backport this macro. --- src/compat/compat.h | 3 +++ 1 file changed, 3 insertions(+) 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 +#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)) || \ -- cgit v1.2.3-59-g8ed1b