dpif-netdev: Allow for Ethernet and VLAN header in buffer size calculation.
[openvswitch] / datapath / linux-2.6 / compat-2.6 / include / linux / kernel.h
index 13361f78d0132da48528cec7b242cf84a8f64ad7..356187f74fe35a9ebeaa4d359de9ade8c2b5874b 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 */