mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
tracing: incorrect isolate_mote_t cast in mm_vmscan_lru_isolate
[ Upstream commit 2b132903de
]
Fixes following sparse warnings:
CHECK mm/vmscan.c
mm/vmscan.c: note: in included file (through
include/trace/trace_events.h, include/trace/define_trace.h,
include/trace/events/vmscan.h):
./include/trace/events/vmscan.h:281:1: sparse: warning:
cast to restricted isolate_mode_t
./include/trace/events/vmscan.h:281:1: sparse: warning:
restricted isolate_mode_t degrades to integer
Link: https://lkml.kernel.org/r/e85d7ff2-fd10-53f8-c24e-ba0458439c1b@openvz.org
Signed-off-by: Vasily Averin <vvs@openvz.org>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
eff3587b9c
commit
5a3767ac79
1 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ TRACE_EVENT(mm_vmscan_lru_isolate,
|
|||
__field(unsigned long, nr_scanned)
|
||||
__field(unsigned long, nr_skipped)
|
||||
__field(unsigned long, nr_taken)
|
||||
__field(isolate_mode_t, isolate_mode)
|
||||
__field(unsigned int, isolate_mode)
|
||||
__field(int, lru)
|
||||
),
|
||||
|
||||
|
@ -294,7 +294,7 @@ TRACE_EVENT(mm_vmscan_lru_isolate,
|
|||
__entry->nr_scanned = nr_scanned;
|
||||
__entry->nr_skipped = nr_skipped;
|
||||
__entry->nr_taken = nr_taken;
|
||||
__entry->isolate_mode = isolate_mode;
|
||||
__entry->isolate_mode = (__force unsigned int)isolate_mode;
|
||||
__entry->lru = lru;
|
||||
),
|
||||
|
||||
|
|
Loading…
Reference in a new issue