Fixes compilation brokenness on kernels below 2.6.24

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@347 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-04-21 16:34:55 +00:00
parent eaf21084d9
commit 0480442bed
2 changed files with 1 additions and 7 deletions

View File

@@ -16,7 +16,7 @@
*/
#include <asm/types.h>
#include <asm/scatterlist.h>
#include <linux/scatterlist.h>
#include "iscsi.h"
#include "digest.h"

View File

@@ -2353,12 +2353,6 @@ static inline void sg_set_page(struct scatterlist *sg, struct page *page,
sg->length = len;
}
static inline void sg_set_buf(struct scatterlist *sg, const void *buf,
unsigned int buflen)
{
sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
}
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) */
static inline void sg_clear(struct scatterlist *sg)