diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index adbd3b0c8..62ef95c00 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -2035,7 +2035,11 @@ static void scst_adjust_sg(struct scst_cmd *cmd, struct scatterlist *sg, l = 0; for (i = 0, j = 0; i < *sg_cnt; i++, j++) { TRACE_DBG("i %d, j %d, sg_cnt %d, sg %p, page_link %lx", i, j, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24) *sg_cnt, sg, sg[j].page_link); +#else + *sg_cnt, sg, 0UL); +#endif if (unlikely(sg_is_chain(&sg[j]))) { sg = sg_chain_ptr(&sg[j]); j = 0;