UPSTREAM: mm/zsmalloc.c: change stat type parameter to int
authorMatthias Kaehlcke <mka@chromium.org>
Fri, 8 Sep 2017 23:13:02 +0000 (16:13 -0700)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:34 +0000 (21:13 +0000)
commit7fe91a0f288ddea79e31e12c283846b822ca4c60
tree82367da2aff78bdad87eb516618bc047863bbc4d
parent48944a5ecf6639974aa249e5b894154dad9003c8
UPSTREAM: mm/zsmalloc.c: change stat type parameter to int

zs_stat_inc/dec/get() uses enum zs_stat_type for the stat type, however
some callers pass an enum fullness_group value.  Change the type to int to
reflect the actual use of the functions and get rid of 'enum-conversion'
warnings

Link: http://lkml.kernel.org/r/20170731175000.56538-1-mka@chromium.org
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Doug Anderson <dianders@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 3eb95feac113d8ebad5b7b5189a65efcbd95a749)
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
mm/zsmalloc.c