datapath: Get rid of compat.h, compat26.h in favor of modern approach.
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / linux / kernel.h
index 13361f7..356187f 100644 (file)
@@ -38,4 +38,8 @@
 #define pr_warn pr_warning
 #endif
 
+#if defined(CONFIG_PREEMPT) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)
+#error "CONFIG_PREEMPT is broken before 2.6.21--see commit 4498121ca3, \"[NET]: Handle disabled preemption in gfp_any()\""
+#endif
+
 #endif /* linux/kernel.h */