[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-10c3405f060397e565e4f75c403859f9a074bfa5@git.kernel.org>
Date: Sat, 9 Mar 2019 11:48:38 -0800
From: "tip-bot for Gustavo A. R. Silva" <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: acme@...hat.com, gustavo@...eddedor.com, tglx@...utronix.de,
peterz@...radead.org, linux-kernel@...r.kernel.org,
jolsa@...hat.com, namhyung@...nel.org, keescook@...omium.org,
alexander.shishkin@...ux.intel.com, mingo@...nel.org, hpa@...or.com
Subject: [tip:perf/urgent] perf: Mark expected switch fall-through
Commit-ID: 10c3405f060397e565e4f75c403859f9a074bfa5
Gitweb: https://git.kernel.org/tip/10c3405f060397e565e4f75c403859f9a074bfa5
Author: Gustavo A. R. Silva <gustavo@...eddedor.com>
AuthorDate: Tue, 12 Feb 2019 14:54:30 -0600
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Fri, 1 Mar 2019 10:54:00 -0300
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@...eddedor.com>
Cc: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: Gustavo A. R. Silva <gustavo@...eddedor.com>
Cc: Jiri Olsa <jolsa@...hat.com>
Cc: Kees Kook <keescook@...omium.org>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Link: http://lkml.kernel.org/r/20190212205430.GA8446@embeddedor
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
kernel/events/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index dd9698ad3d66..6fb27b564730 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -9175,6 +9175,7 @@ perf_event_parse_addr_filter(struct perf_event *event, char *fstr,
case IF_SRC_KERNELADDR:
case IF_SRC_KERNEL:
kernel = 1;
+ /* fall through */
case IF_SRC_FILEADDR:
case IF_SRC_FILE:
Powered by blists - more mailing lists