[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180307124712.14963-6-tvrtko.ursulin@linux.intel.com>
Date: Wed, 7 Mar 2018 12:47:11 +0000
From: Tvrtko Ursulin <tursulin@...ulin.net>
To: linux-kernel@...r.kernel.org
Cc: Tvrtko Ursulin <tvrtko.ursulin@...el.com>,
Bart Van Assche <bart.vanassche@....com>,
Hannes Reinecke <hare@...e.com>,
Johannes Thumshirn <jthumshirn@...e.de>,
Jens Axboe <axboe@...nel.dk>
Subject: [PATCH 5/6] lib/scatterlist: Drop unused sgl_free_order
From: Tvrtko Ursulin <tvrtko.ursulin@...el.com>
No code calls it so remove it.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@...el.com>
Cc: Bart Van Assche <bart.vanassche@....com>
Cc: Hannes Reinecke <hare@...e.com>
Cc: Johannes Thumshirn <jthumshirn@...e.de>
Cc: Jens Axboe <axboe@...nel.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
Powered by blists - more mailing lists