Messages in this thread Patch in this message | | | From | Tvrtko Ursulin <> | Subject | [PATCH 5/6] lib/scatterlist: Drop unused sgl_free_order | Date | Wed, 7 Mar 2018 12:47:11 +0000 |
| |
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
No code calls it so remove it.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Bart Van Assche <bart.vanassche@wdc.com> Cc: Hannes Reinecke <hare@suse.com> Cc: Johannes Thumshirn <jthumshirn@suse.de> Cc: Jens Axboe <axboe@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
| |