mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
Remove sg_init_one() definition, because it was added in the kernel prior 2.6.16.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@703 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2571,13 +2571,6 @@ static inline void sg_init_table(struct scatterlist *sgl, unsigned int nents)
|
||||
memset(sgl, 0, sizeof(*sgl) * nents);
|
||||
}
|
||||
|
||||
static inline void sg_init_one(struct scatterlist *sg, const void *buf,
|
||||
unsigned int buflen)
|
||||
{
|
||||
sg_init_table(sg, 1);
|
||||
sg_set_buf(sg, buf, buflen);
|
||||
}
|
||||
|
||||
static inline void sg_assign_page(struct scatterlist *sg, struct page *page)
|
||||
{
|
||||
sg->page = page;
|
||||
|
||||
Reference in New Issue
Block a user