[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1568658408-19374-1-git-send-email-cai@lca.pw>
Date: Mon, 16 Sep 2019 14:26:48 -0400
From: Qian Cai <cai@....pw>
To: akpm@...ux-foundation.org
Cc: ngupta@...are.org, sergey.senozhatsky@...il.com,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Qian Cai <cai@....pw>
Subject: [PATCH] mm/zsmalloc: 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.
Signed-off-by: Qian Cai <cai@....pw>
---
mm/zsmalloc.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index e98bb6ab4f7e..24179cfe8784 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -476,10 +476,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)
{
--
1.8.3.1
Powered by blists - more mailing lists