mm/zsmalloc: fix a -Wunused-function warning
diff mbox series

Message ID 1568658408-19374-1-git-send-email-cai@lca.pw
State New
Headers show
Series
  • mm/zsmalloc: fix a -Wunused-function warning
Related show

Commit Message

Qian Cai Sept. 16, 2019, 6:26 p.m. UTC
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(-)

Patch
diff mbox series

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)
 {