]> git.baikalelectronics.ru Git - kernel.git/commit
mm/zsmalloc.c: fix a -Wunused-function warning
authorQian Cai <cai@lca.pw>
Mon, 23 Sep 2019 22:39:46 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Sep 2019 22:54:12 +0000 (15:54 -0700)
commit7abd5e1905536b7913e87b1b093d915916a66c49
treee46de1b87827746c1eedbce9f4d2696d5c9ccfdb
parent25e843e33dafd83f956669f12a3558859d11ede3
mm/zsmalloc.c: fix a -Wunused-function warning

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

0d9d2a55cea1 ("zsmalloc: factor page chain functionality out")
4381015577ba ("zsmalloc: introduce zspage structure")

so the function can be safely removed now.

Link: http://lkml.kernel.org/r/1568658408-19374-1-git-send-email-cai@lca.pw
Signed-off-by: Qian Cai <cai@lca.pw>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zsmalloc.c