mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user