From: Fengguang Wu Subject: [PATCH mmotm] mm/zpool: zs_zpool_destroy() can be static TO: Dan Streetman CC: Johannes Weiner CC: linux-mm@kvack.org CC: linux-kernel@vger.kernel.org CC: Dan Streetman CC: Johannes Weiner Signed-off-by: Fengguang Wu --- zsmalloc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index feba644..20dc632 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -250,28 +250,28 @@ static void *zs_zpool_create(gfp_t gfp, struct zpool_ops *zpool_ops) return zs_create_pool(gfp); } -void zs_zpool_destroy(void *pool) +static void zs_zpool_destroy(void *pool) { zs_destroy_pool(pool); } -int zs_zpool_malloc(void *pool, size_t size, unsigned long *handle) +static int zs_zpool_malloc(void *pool, size_t size, unsigned long *handle) { *handle = zs_malloc(pool, size); return *handle ? 0 : -1; } -void zs_zpool_free(void *pool, unsigned long handle) +static void zs_zpool_free(void *pool, unsigned long handle) { zs_free(pool, handle); } -int zs_zpool_shrink(void *pool, unsigned int pages, +static int zs_zpool_shrink(void *pool, unsigned int pages, unsigned int *reclaimed) { return -EINVAL; } -void *zs_zpool_map(void *pool, unsigned long handle, +static void *zs_zpool_map(void *pool, unsigned long handle, enum zpool_mapmode mm) { enum zs_mapmode zs_mm; @@ -291,12 +291,12 @@ void *zs_zpool_map(void *pool, unsigned long handle, return zs_map_object(pool, handle, zs_mm); } -void zs_zpool_unmap(void *pool, unsigned long handle) +static void zs_zpool_unmap(void *pool, unsigned long handle) { zs_unmap_object(pool, handle); } -u64 zs_zpool_total_size(void *pool) +static u64 zs_zpool_total_size(void *pool) { return zs_get_total_size_bytes(pool); }