From ebb024ff68e6cb07b044b36d0dfe11daa63adeec Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 26 Jul 2020 23:51:54 +0000 Subject: [PATCH] scst/include/backport.h: Backport qla2x00t-32gbit to older kernel versions git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9084 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index 5ec336841..abb90c6f5 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -2032,8 +2032,24 @@ enum { #define wwn_to_u64(wwn) get_unaligned_be64(wwn) #endif +/* + * See also commit c39e0af64bce ("scsi: scsi_transport_fc: Add FPIN fc event + * codes") # v5.2 + */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) +static inline void +fc_host_fpin_rcv(struct Scsi_Host *shost, u32 fpin_len, char *fpin_buf) +{ +} +#endif + /* */ +/* See also commit a7dff3ad4787 ("scsi: fc: add FPIN ELS definition") # v5.2 */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) +#define ELS_FPIN 0x16 +#endif + /* * See also commit 62e9dd177732 ("scsi: qla2xxx: Change in PUREX to handle FPIN * ELS requests").