diff --git a/qla2x00t/qla_attr.c b/qla2x00t/qla_attr.c index 35ec12e6a..f541a682b 100644 --- a/qla2x00t/qla_attr.c +++ b/qla2x00t/qla_attr.c @@ -14,10 +14,6 @@ #include "qla2x_tgt.h" #include -#ifndef RHEL_RELEASE_VERSION -#define RHEL_RELEASE_VERSION(maj, min) 0 -#endif - static int qla24xx_vport_disable(struct fc_vport *, bool); /* SYSFS attributes --------------------------------------------------------- */ diff --git a/qla2x00t/qla_os.c b/qla2x00t/qla_os.c index af84e81ce..05e6e8def 100644 --- a/qla2x00t/qla_os.c +++ b/qla2x00t/qla_os.c @@ -22,10 +22,6 @@ #include #include -#ifndef RHEL_RELEASE_VERSION -#define RHEL_RELEASE_VERSION(maj, min) 0 -#endif - /* * Driver version */ diff --git a/scst/include/backport.h b/scst/include/backport.h index 0bc413b1d..c58d43b93 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -21,6 +21,9 @@ */ #include +#ifndef RHEL_RELEASE_VERSION +#define RHEL_RELEASE_VERSION(a, b) (((a) << 8) + (b)) +#endif #include #include /* struct request_queue */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 21, 0) || \ diff --git a/scst/src/scst_dlm.c b/scst/src/scst_dlm.c index 652306189..dff421cb7 100644 --- a/scst/src/scst_dlm.c +++ b/scst/src/scst_dlm.c @@ -30,10 +30,6 @@ #include "scst_pres.h" #include "scst_dlm.h" -#ifndef RHEL_RELEASE_VERSION -#define RHEL_RELEASE_VERSION(maj, min) 0 -#endif - #if (defined(CONFIG_DLM) || defined(CONFIG_DLM_MODULE)) && \ !defined(CONFIG_SCST_NO_DLM) diff --git a/scst_local/scst_local.c b/scst_local/scst_local.c index fa8d1f580..97575e668 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -46,10 +46,6 @@ static inline u32 blk_mq_unique_tag(struct request *rq) #include #endif -#ifndef RHEL_RELEASE_VERSION -#define RHEL_RELEASE_VERSION(maj, min) 0 -#endif - #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)) #define SG_MAX_SINGLE_ALLOC (PAGE_SIZE / sizeof(struct scatterlist)) #endif