From 7b375842e967ead466ee54985b7f3a0b9ad5809b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 25 Jul 2020 14:45:27 +0000 Subject: [PATCH] qla2x00t-32gbit: Fix two recently introduced build errors git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9074 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t-32gbit/qla_os.c | 3 +-- scst/include/backport.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/qla2x00t-32gbit/qla_os.c b/qla2x00t-32gbit/qla_os.c index 5d8a00083..0d962ae1a 100644 --- a/qla2x00t-32gbit/qla_os.c +++ b/qla2x00t-32gbit/qla_os.c @@ -6378,8 +6378,7 @@ dealloc: rsp_els, rsp_els_dma); } -static void -qla24xx_free_purex_item(struct purex_item *item) +void qla24xx_free_purex_item(struct purex_item *item) { if (item == &item->vha->default_item) memset(&item->vha->default_item, 0, sizeof(struct purex_item)); diff --git a/scst/include/backport.h b/scst/include/backport.h index 1bf291991..5ec336841 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -2032,6 +2032,16 @@ enum { #define wwn_to_u64(wwn) get_unaligned_be64(wwn) #endif +/* */ + +/* + * See also commit 62e9dd177732 ("scsi: qla2xxx: Change in PUREX to handle FPIN + * ELS requests"). + */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 9, 0) +#define ELS_RDP 0x18 +#endif + /* */ #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0)