From: Tvrtko Ursulin <tvrtko.ursu...@intel.com> No code calls it so remove it.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursu...@intel.com> Cc: Bart Van Assche <bart.vanass...@wdc.com> Cc: Hannes Reinecke <h...@suse.com> Cc: Johannes Thumshirn <jthumsh...@suse.de> Cc: Jens Axboe <ax...@kernel.dk> --- 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