From 5aeb06e3a80be67b59a23982bf5b95b1d26a5c05 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 1 Jun 2020 02:05:35 +0000 Subject: [PATCH] scst/include/backport.h: Improve the cpu_to_be32_array() backport git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8995 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 49d278a59..bf6f74f20 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -188,7 +188,8 @@ static inline void *bsg_job_sense(struct bsg_job *job) * from Thunderbolt to core") # v4.15. */ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0) && \ - (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 7) + (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 7 || \ + RHEL_MAJOR -0 == 7 && RHEL_MINOR -0 < 8) static inline void cpu_to_be32_array(__be32 *dst, const u32 *src, size_t len) { int i;