From 64cd4b4380d4163c1bdbba027cc592f8159729ef Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Mon, 19 Oct 2026 15:10:35 +0300 Subject: [PATCH] qla2x00t-32gbit: Honor the PI build guard in the 29xx CRC path The imported 29xx CRC builder calls the protection SG walker unconditionally, but SCST compiles that walker only with QLA_ENABLE_PI. Match the existing 24xx caller so PI-disabled builds do not retain an undefined symbol. Keep this SCST adaptation separate from upstream b6781d71a414. --- qla2x00t-32gbit/qla_iocb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qla2x00t-32gbit/qla_iocb.c b/qla2x00t-32gbit/qla_iocb.c index 56936d1ab..3c851db98 100644 --- a/qla2x00t-32gbit/qla_iocb.c +++ b/qla2x00t-32gbit/qla_iocb.c @@ -5309,12 +5309,16 @@ qla29xx_build_scsi_crc_2_iocbs(srb_t *sp, struct cmd_type_crc_2_ext *cmd_pkt, goto crc_queuing_error; if (bundling && tot_prot_dsds) { +#if QLA_ENABLE_PI /* Walks dif segments */ cmd_pkt->control_flags_1 |= cpu_to_le16(CF_DIF_SEG_DESCR_ENABLE); cur_dsd = &crc_ctx_pkt->u.bundling.dif_dsd; if (qla24xx_walk_and_build_prot_sglist(ha, sp, cur_dsd, tot_prot_dsds, NULL)) goto crc_queuing_error; +#else + WARN_ON_ONCE(true); +#endif } qla29xx_copy_dif_iocb_data(cmd_pkt, crc_ctx_pkt, bundling);