[PATCH 5/6] lib/scatterlist: Drop unused sgl_free_order

From: Tvrtko Ursulin
Date: Wed Mar 07 2018 - 07:49:06 EST


From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>

No code calls it so remove it.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
Cc: Bart Van Assche <bart.vanassche@xxxxxxx>
Cc: Hannes Reinecke <hare@xxxxxxxx>
Cc: Johannes Thumshirn <jthumshirn@xxxxxxx>
Cc: Jens Axboe <axboe@xxxxxxxxx>
---
include/linux/scatterlist.h | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h
index f665a278011a..3ffc5f3bf181 100644
--- a/include/linux/scatterlist.h
+++ b/include/linux/scatterlist.h
@@ -297,23 +297,13 @@ sgl_alloc(unsigned long length, gfp_t gfp, unsigned int *nent_p)
return sgl_alloc_order(length, 0, false, gfp, nent_p);
}

-/**
- * sgl_free_order - free a scatterlist and its pages
- * @sgl: Scatterlist with one or more elements
- * @order: Second argument for __free_pages()
- */
-static inline void sgl_free_order(struct scatterlist *sgl, unsigned int order)
-{
- sgl_free_n_order(sgl, UINT_MAX, order);
-}
-
/**
* sgl_free - free a scatterlist and its pages
* @sgl: Scatterlist with one or more elements
*/
static inline void sgl_free(struct scatterlist *sgl)
{
- sgl_free_order(sgl, 0);
+ sgl_free_n_order(sgl, UINT_MAX, 0);
}

#endif /* CONFIG_SGL_ALLOC */
--
2.14.1