The __percpu and __rcu annotations for sparse are relatively
recent additions, so provide no-op definitions on older kernels.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
linux-2.6/compat-2.6/compat26.h \
linux-2.6/compat-2.6/include/asm-generic/bug.h \
linux-2.6/compat-2.6/include/linux/bottom_half.h \
+ linux-2.6/compat-2.6/include/linux/compiler.h \
linux-2.6/compat-2.6/include/linux/compiler-gcc.h \
linux-2.6/compat-2.6/include/linux/cpumask.h \
linux-2.6/compat-2.6/include/linux/dmi.h \
--- /dev/null
+#ifndef __LINUX_COMPILER_WRAPPER_H
+#define __LINUX_COMPILER_WRAPPER_H 1
+
+#include_next <linux/compiler.h>
+
+#ifndef __percpu
+#define __percpu
+#endif
+
+#ifndef __rcu
+#define __rcu
+#endif
+
+#endif