diff --git a/qla2x00t/qla_os.c b/qla2x00t/qla_os.c index d6a894e24..3336574ee 100644 --- a/qla2x00t/qla_os.c +++ b/qla2x00t/qla_os.c @@ -4,8 +4,6 @@ * * See LICENSE.qla2xxx for copyright and licensing details. */ -#include "qla_def.h" - #include #include #include @@ -13,11 +11,16 @@ #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26) +#error Kernel 2.6.26 or above is needed to build the qla2x00t driver +#endif + #include #include #include #include +#include "qla_def.h" #include "qla2x_tgt.h" #ifndef RHEL_RELEASE_VERSION