qla2x00t: Display a clear error message if the kernel is too old (merge r4510 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2012-11-03 14:32:40 +00:00
parent c9b55878ad
commit b5325996cf

View File

@@ -4,8 +4,6 @@
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
#include "qla_def.h"
#include <linux/moduleparam.h>
#include <linux/vmalloc.h>
#include <linux/delay.h>
@@ -13,11 +11,16 @@
#include <linux/mutex.h>
#include <linux/version.h>
#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 <scsi/scsi_tcq.h>
#include <scsi/scsicam.h>
#include <scsi/scsi_transport.h>
#include <scsi/scsi_transport_fc.h>
#include "qla_def.h"
#include "qla2x_tgt.h"
#ifndef RHEL_RELEASE_VERSION