From: John W. Linville Date: Thu, 26 Jan 2012 18:00:56 +0000 (-0500) Subject: compat: use kconfig.h in compat-2.6.h for 3.1 and later kernels X-Git-Tag: compat-2012-07-02~34 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=76d24cc3d9c3a56ed90752c233200e372d55744f;p=compat-rdma%2Fcompat.git compat: use kconfig.h in compat-2.6.h for 3.1 and later kernels This file was introduced in commit 2a11c8ea20bf850b3a2c60db8c2e7497d28aba99 and included in 3.1 and later kernels. It includes itself, as well as some other definitions that are used elsewhere. Signed-off-by: John W. Linville Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-2.6.h b/include/linux/compat-2.6.h index c23e94a..3ccd051 100644 --- a/include/linux/compat-2.6.h +++ b/include/linux/compat-2.6.h @@ -2,7 +2,9 @@ #define LINUX_26_COMPAT_H #include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0)) +#include +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) #include #else #include