Complain upon attempts to use the sysfs interface on RHEL 5 or a pre-2.6.26 kernel.

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3486 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-05-27 10:41:57 +00:00
parent c204be3bf5
commit c977e99fb2

View File

@@ -33,6 +33,10 @@
#ifdef CONFIG_SCST_PROC
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#elif defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5
#error The SCST sysfs interface is not supported on RHEL 5. Please run make enable_proc.
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
#error The SCST sysfs interface is supported from kernel version 2.6.26 on. Please run make enable_proc.
#endif
#include <scsi/scsi_cmnd.h>