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

Message ID
State New
Headers show
  • 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

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 <>
 mm/zsmalloc.c | 4 ----
 1 file changed, 4 deletions(-)

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)