Commit 2b38d01b authored by Qian Cai's avatar Qian Cai Committed by Linus Torvalds
Browse files

mm/zsmalloc.c: fix a -Wunused-function warning

set_zspage_inuse() was introduced in the commit 4f42047b ("zsmalloc:
use accessor") but all the users of it were removed later by the commits,

bdb0af7c ("zsmalloc: factor page chain functionality out")
3783689a ("zsmalloc: introduce zspage structure")

so the function can be safely removed now.


Signed-off-by: default avatarQian Cai <>
Reviewed-by: default avatarAndrew Morton <>
Cc: Minchan Kim <>
Cc: Sergey Senozhatsky <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 068619e3
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment