* + tracing-incorrect-isolate_mote_t-cast-in-mm_vmscan_lru_isolate.patch added to mm-unstable branch
@ 2022-05-16 20:38 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-05-16 20:38 UTC (permalink / raw)
To: mm-commits, rostedt, vvs, akpm
The patch titled
Subject: tracing: incorrect isolate_mote_t cast in mm_vmscan_lru_isolate
has been added to the -mm mm-unstable branch. Its filename is
tracing-incorrect-isolate_mote_t-cast-in-mm_vmscan_lru_isolate.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/tracing-incorrect-isolate_mote_t-cast-in-mm_vmscan_lru_isolate.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Vasily Averin <vvs@openvz.org>
Subject: tracing: incorrect isolate_mote_t cast in mm_vmscan_lru_isolate
Date: Wed, 11 May 2022 12:46:53 +0300
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>
---
include/trace/events/vmscan.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/include/trace/events/vmscan.h~tracing-incorrect-isolate_mote_t-cast-in-mm_vmscan_lru_isolate
+++ a/include/trace/events/vmscan.h
@@ -297,7 +297,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)
),
@@ -308,7 +308,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;
),
_
Patches currently in -mm which might be from vvs@openvz.org are
tracing-incorrect-isolate_mote_t-cast-in-mm_vmscan_lru_isolate.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-16 21:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-16 20:38 + tracing-incorrect-isolate_mote_t-cast-in-mm_vmscan_lru_isolate.patch added to mm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.