From 76d24cc3d9c3a56ed90752c233200e372d55744f Mon Sep 17 00:00:00 2001 From: "John W. Linville" Date: Thu, 26 Jan 2012 13:00:56 -0500 Subject: [PATCH] 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 --- include/linux/compat-2.6.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.46.0