scst: Avoid that RHEL 7.6 complains about WRITE_VERIFY_16 being redefined

RHEL7.6 backported the WRITE_VERIFY_16 macro to their 3.10 based
kernel (3.10.0-957.*), so do not define WRITE_VERIFY_16 on RHEL7.6
and above.

Reported-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7842 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-12-19 14:55:58 +00:00
parent ef0b793811
commit 76edd32ceb

View File

@@ -371,7 +371,8 @@ static inline int scst_sense_response_code(const uint8_t *sense)
&& (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 <= 5)
#define WRITE_ATTRIBUTE 0x8D
#endif
#if !defined(__KERNEL__) || LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
#if (!defined(__KERNEL__) || LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)) &&\
!defined(WRITE_VERIFY_16)
#define WRITE_VERIFY_16 0x8E
#endif
#define VERIFY_6 0x13