Builds again against kernel 2.6.23 and before.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2126 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-09-14 10:55:10 +00:00
parent 25cb08ed2f
commit cb36024b63

View File

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