qla2x00t-32gbit: Compilation fix for kernel versions before v5.12

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9418 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-05-18 05:06:30 +00:00
parent 9a9fdf179f
commit 21e987fa8e

View File

@@ -7793,7 +7793,11 @@ struct scsi_host_template qla2xxx_driver_template = {
.eh_timed_out = fc_eh_timed_out,
#endif
.eh_abort_handler = qla2xxx_eh_abort,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
/* See also commit 60bee27ba2df ("scsi: core: No retries on abort
* success") */
.eh_should_retry_cmd = fc_eh_should_retry_cmd,
#endif
.eh_device_reset_handler = qla2xxx_eh_device_reset,
.eh_target_reset_handler = qla2xxx_eh_target_reset,
.eh_bus_reset_handler = qla2xxx_eh_bus_reset,