From 0480442bede1519a44b3c9845b01ad1bf84af69a Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 21 Apr 2008 16:34:55 +0000 Subject: [PATCH] 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 --- iscsi-scst/kernel/digest.c | 2 +- scst/include/scst.h | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/iscsi-scst/kernel/digest.c b/iscsi-scst/kernel/digest.c index 7b79ca490..1ba39c003 100644 --- a/iscsi-scst/kernel/digest.c +++ b/iscsi-scst/kernel/digest.c @@ -16,7 +16,7 @@ */ #include -#include +#include #include "iscsi.h" #include "digest.h" diff --git a/scst/include/scst.h b/scst/include/scst.h index 1ea6a8bc5..7df5e51a3 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -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)