From c977e99fb2cb0ac246fc1d27bc187643ac200b56 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 27 May 2011 10:41:57 +0000 Subject: [PATCH] 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 --- scst/include/scst.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scst/include/scst.h b/scst/include/scst.h index 18af43a68..e2e0ec233 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -33,6 +33,10 @@ #ifdef CONFIG_SCST_PROC #include #include +#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