From e0c19875ea0b77640a9024c4b15ba8502c49e00c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 24 Jun 2021 03:47:46 +0000 Subject: [PATCH] scst: Fix the CentOS / RHEL 8.[012] builds (trunk r9328) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.5.x@9452 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 3a16c4ec8..49ec9417c 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -1172,7 +1172,8 @@ static inline int pcie_capability_read_dword(struct pci_dev *dev, int pos, #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0) -#if !defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 8 +#if defined(RHEL_RELEASE_CODE) && \ + RHEL_RELEASE_CODE -0 >= RHEL_RELEASE_VERSION(8, 3)) /* * See also commit 09ed79d6d75f ("percpu_ref: introduce PERCPU_REF_ALLOW_REINIT * flag") # v5.3.