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
This commit is contained in:
Bart Van Assche
2020-07-25 14:45:27 +00:00
parent 4f36320d77
commit 7b375842e9
2 changed files with 11 additions and 2 deletions

View File

@@ -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));

View File

@@ -2032,6 +2032,16 @@ enum {
#define wwn_to_u64(wwn) get_unaligned_be64(wwn)
#endif
/* <uapi/scsi/fc/fc_els.h> */
/*
* 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
/* <target/target_core_base.h> */
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0)