mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user