From: Fabian Frederick Date: Thu, 26 Jun 2014 00:42:44 +0000 (+1000) Subject: mm/zswap.c: add __init to zswap_entry_cache_destroy() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3cc8c120903474c89ce7794b882b68e3de6c9350;p=karo-tx-linux.git mm/zswap.c: add __init to zswap_entry_cache_destroy() zswap_entry_cache_destroy() is only called by __init init_zswap(). This patch also fixes function name zswap_entry_cache_ s/destory/destroy Signed-off-by: Fabian Frederick Acked-by: Seth Jennings Signed-off-by: Andrew Morton --- diff --git a/mm/zswap.c b/mm/zswap.c index 333d70c66093..900d2cd80f89 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -207,7 +207,7 @@ static int zswap_entry_cache_create(void) return zswap_entry_cache == NULL; } -static void zswap_entry_cache_destory(void) +static void __init zswap_entry_cache_destroy(void) { kmem_cache_destroy(zswap_entry_cache); } @@ -926,7 +926,7 @@ static int __init init_zswap(void) pcpufail: zswap_comp_exit(); compfail: - zswap_entry_cache_destory(); + zswap_entry_cache_destroy(); cachefail: zbud_destroy_pool(zswap_pool); error: