Skip to content

Commit

Permalink
mm/zsmalloc.c: fix a -Wunused-function warning
Browse files Browse the repository at this point in the history
set_zspage_inuse() was introduced in the commit 4f42047 ("zsmalloc:
use accessor") but all the users of it were removed later by the commits,

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

so the function can be safely removed now.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Qian Cai <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Qian Cai authored and torvalds committed Sep 24, 2019
1 parent 068619e commit 2b38d01
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mm/zsmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2b38d01

Please sign in to comment.