diff options
author | Matthias Kaehlcke <[email protected]> | 2017-09-06 16:22:09 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-09-06 17:27:27 -0700 |
commit | 04fecbf51b3cb79a628d50b65797c4866342b8d2 (patch) | |
tree | 9ebd9f30e608a2add61ddee13da25d3273eb55db /lib/mpi/mpi-cmp.c | |
parent | 67e5ed969944d7c6d93f658a188240cf60c49f71 (diff) |
mm: memcontrol: use int for event/state parameter in several functions
Several functions use an enum type as parameter for an event/state, but
are called in some locations with an argument of a different enum type.
Adjust the interface of these functions to reality by changing the
parameter to int.
This fixes a ton of enum-conversion warnings that are generated when
building the kernel with clang.
[[email protected]: also change parameter type of inc/dec/mod_memcg_page_state()]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthias Kaehlcke <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Cc: Doug Anderson <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions