diff --git a/scst/include/backport.h b/scst/include/backport.h index c58d43b93..3a16c4ec8 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -1172,12 +1172,14 @@ 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 /* * See also commit 09ed79d6d75f ("percpu_ref: introduce PERCPU_REF_ALLOW_REINIT * flag") # v5.3. */ #define PERCPU_REF_ALLOW_REINIT 0 #endif +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) #define PERCPU_COUNT_BIAS (1U << 31)