From 621e67205f6563677b5b2ad601941e1246466b23 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 2 Apr 2019 04:14:40 +0000 Subject: [PATCH] qla2x00t-32gbit, target: Define qlt_handle_dif_error() also if PI is disabled git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8136 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t-32gbit/qla_target.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qla2x00t-32gbit/qla_target.c b/qla2x00t-32gbit/qla_target.c index bfd73ea11..66e92f8c2 100644 --- a/qla2x00t-32gbit/qla_target.c +++ b/qla2x00t-32gbit/qla_target.c @@ -3526,6 +3526,7 @@ out_unlock_free_unmap: EXPORT_SYMBOL(qlt_rdy_to_xfer); +#if QLA_ENABLE_PI /* * it is assumed either hardware_lock or qpair lock is held. */ @@ -3628,6 +3629,14 @@ out: break; } } +#else +static void +qlt_handle_dif_error(struct qla_qpair *qpair, struct qla_tgt_cmd *cmd, + struct ctio_crc_from_fw *sts) +{ + WARN_ON_ONCE(true); +} +#endif /* If hardware_lock held on entry, might drop it, then reaquire */ /* This function sends the appropriate CTIO to ISP 2xxx or 24xx */