mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 12:41:26 +00:00
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:
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
#include <asm/types.h>
|
||||
#include <asm/scatterlist.h>
|
||||
#include <linux/scatterlist.h>
|
||||
|
||||
#include "iscsi.h"
|
||||
#include "digest.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)
|
||||
|
||||
Reference in New Issue
Block a user