projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dpif-netdev: Allow for Ethernet and VLAN header in buffer size calculation.
[openvswitch]
/
datapath
/
linux-2.6
/
compat-2.6
/
include
/
linux
/
kernel.h
diff --git
a/datapath/linux-2.6/compat-2.6/include/linux/kernel.h
b/datapath/linux-2.6/compat-2.6/include/linux/kernel.h
index 13361f78d0132da48528cec7b242cf84a8f64ad7..356187f74fe35a9ebeaa4d359de9ade8c2b5874b 100644
(file)
--- a/
datapath/linux-2.6/compat-2.6/include/linux/kernel.h
+++ b/
datapath/linux-2.6/compat-2.6/include/linux/kernel.h
@@
-38,4
+38,8
@@
#define pr_warn pr_warning
#endif
#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 */
#endif /* linux/kernel.h */