From 7abd5e1905536b7913e87b1b093d915916a66c49 Mon Sep 17 00:00:00 2001 From: Qian Cai Date: Mon, 23 Sep 2019 15:39:46 -0700 Subject: [PATCH] mm/zsmalloc.c: fix a -Wunused-function warning set_zspage_inuse() was introduced in the commit 7cecd1188686 ("zsmalloc: use accessor") but all the users of it were removed later by the commits, 0d9d2a55cea1 ("zsmalloc: factor page chain functionality out") 4381015577ba ("zsmalloc: introduce zspage structure") so the function can be safely removed now. Link: http://lkml.kernel.org/r/1568658408-19374-1-git-send-email-cai@lca.pw Signed-off-by: Qian Cai Reviewed-by: Andrew Morton Cc: Minchan Kim Cc: Sergey Senozhatsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/zsmalloc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 646858efd4684..2b2b9aae8a3c6 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -477,10 +477,6 @@ static inline int get_zspage_inuse(struct zspage *zspage) return zspage->inuse; } -static inline void set_zspage_inuse(struct zspage *zspage, int val) -{ - zspage->inuse = val; -} static inline void mod_zspage_inuse(struct zspage *zspage, int val) { -- 2.39.5