From bc797514f9b2e6256378750a360690c4cae26b06 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 19 Dec 2018 06:51:27 -0800 Subject: [PATCH] rhel-7 --- scst/include/scst_const.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/include/scst_const.h b/scst/include/scst_const.h index c4acfa171..cb0caa2ea 100644 --- a/scst/include/scst_const.h +++ b/scst/include/scst_const.h @@ -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