diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-02-12 21:54:30 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-03-01 14:54:00 +0100 |
commit | 10c3405f060397e565e4f75c403859f9a074bfa5 (patch) | |
tree | f868049bffa7363b21752aecc4f83184a4fb228d /tools/perf/util/time-utils.h | |
parent | tools lib traceevent: Fix buffer overflow in arg_eval (diff) | |
download | linux-10c3405f060397e565e4f75c403859f9a074bfa5.tar.xz linux-10c3405f060397e565e4f75c403859f9a074bfa5.zip |
perf: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
This patch fixes the following warning:
kernel/events/core.c: In function ‘perf_event_parse_addr_filter’:
kernel/events/core.c:9154:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
kernel = 1;
~~~~~~~^~~
kernel/events/core.c:9156:3: note: here
case IF_SRC_FILEADDR:
^~~~
Warning level 3 was used: -Wimplicit-fallthrough=3
This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Gustavo A. R. Silva <gustavo@embeddedor.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kees Kook <keescook@chromium.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190212205430.GA8446@embeddedor
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/time-utils.h')
0 files changed, 0 insertions, 0 deletions