From 454c3fb81fd5d5b01b1fec277ea0680373aadaf3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 29 Jul 2020 01:59:10 +0000 Subject: [PATCH] Fix the qla2x00t-32gbit build on CentOS 8.2 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9087 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index abb90c6f5..208160a81 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -2036,7 +2036,9 @@ enum { * See also commit c39e0af64bce ("scsi: scsi_transport_fc: Add FPIN fc event * codes") # v5.2 */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) && \ + (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 8 || \ + RHEL_MAJOR -0 == 8 && RHEL_MINOR -0 < 2) static inline void fc_host_fpin_rcv(struct Scsi_Host *shost, u32 fpin_len, char *fpin_buf) {