linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/zsmalloc: fix a -Wunused-function warning
@ 2019-09-16 18:26 Qian Cai
  0 siblings, 0 replies; only message in thread
From: Qian Cai @ 2019-09-16 18:26 UTC (permalink / raw)
  To: akpm; +Cc: ngupta, sergey.senozhatsky, linux-mm, linux-kernel, Qian Cai

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@lca.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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-16 18:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-16 18:26 [PATCH] mm/zsmalloc: fix a -Wunused-function warning Qian Cai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).