X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Flinux-2.6%2Fcompat-2.6%2Finclude%2Flinux%2Fkernel.h;h=356187f74fe35a9ebeaa4d359de9ade8c2b5874b;hb=ecf9ebff6c0a68d53d600f20ae978aaa96da765f;hp=13361f78d0132da48528cec7b242cf84a8f64ad7;hpb=e215ebca67720188724344eb198c5045c02e375f;p=openvswitch 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 13361f78..356187f7 100644 --- 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 +#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 */