From: Qian Cai Date: Mon, 23 Sep 2019 22:39:46 +0000 (-0700) Subject: mm/zsmalloc.c: fix a -Wunused-function warning X-Git-Tag: v5.15~5430^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b38d01b4de8b1bbda7f5f7e91252609557635fc;p=platform%2Fkernel%2Flinux-starfive.git mm/zsmalloc.c: fix a -Wunused-function warning set_zspage_inuse() was introduced in the commit 4f42047bbde0 ("zsmalloc: use accessor") but all the users of it were removed later by the commits, bdb0af7ca8f0 ("zsmalloc: factor page chain functionality out") 3783689a1aa8 ("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 --- diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 646858e..2b2b9aa 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) {