From 0c609d56a20ef2f044e64b65530aaeb3fb29fb15 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Wed, 19 Oct 2022 17:00:29 +0300 Subject: [PATCH] scst/include/backport.h: Remove support for RHEL5 The SCST has dropped support for RHEL5 since SCST v3.6. --- scst/include/backport.h | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index bb5845979..630edcea9 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -1337,38 +1337,6 @@ iov_iter_kvec_backport(struct iov_iter *i, unsigned int direction, /* */ -#if defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5 -static inline uint16_t get_unaligned_be16(const void *p) -{ - return be16_to_cpu(get_unaligned((__be16 *)p)); -} - -static inline void put_unaligned_be16(uint16_t i, void *p) -{ - put_unaligned(cpu_to_be16(i), (__be16 *)p); -} - -static inline uint32_t get_unaligned_be32(const void *p) -{ - return be32_to_cpu(get_unaligned((__be32 *)p)); -} - -static inline void put_unaligned_be32(uint32_t i, void *p) -{ - put_unaligned(cpu_to_be32(i), (__be32 *)p); -} - -static inline uint64_t get_unaligned_be64(const void *p) -{ - return be64_to_cpu(get_unaligned((__be64 *)p)); -} - -static inline void put_unaligned_be64(uint64_t i, void *p) -{ - put_unaligned(cpu_to_be64(i), (__be64 *)p); -} -#endif - #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 7, 0) && \ (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 8 || \ RHEL_MAJOR -0 == 8 && RHEL_MINOR -0 < 4)