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)