[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-d0fabd1cb8b70073a0f44f1cf8b663b5e7241c74@git.kernel.org>
Date: Thu, 8 Jun 2017 02:22:18 -0700
From: tip-bot for Matthias Kaehlcke <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: tglx@...utronix.de, mingo@...nel.org,
alexander.shishkin@...ux.intel.com, linux-kernel@...r.kernel.org,
acme@...nel.org, hpa@...or.com, dianders@...omium.org,
mka@...omium.org, peterz@...radead.org,
torvalds@...ux-foundation.org
Subject: [tip:perf/core] perf/core: Remove unused
perf_cgroup_event_cgrp_time() function
Commit-ID: d0fabd1cb8b70073a0f44f1cf8b663b5e7241c74
Gitweb: http://git.kernel.org/tip/d0fabd1cb8b70073a0f44f1cf8b663b5e7241c74
Author: Matthias Kaehlcke <mka@...omium.org>
AuthorDate: Tue, 23 May 2017 14:51:32 -0700
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Thu, 8 Jun 2017 10:12:39 +0200
perf/core: Remove unused perf_cgroup_event_cgrp_time() function
The function was added by commit e5d1367f17ba ("perf: Add cgroup
support") in 2011 and hasn't been used since then. Removing it fixes the
following warning when building with Clang:
kernel/events/core.c:696:19: error: unused function 'perf_cgroup_event_cgrp_time' [-Werror,-Wunused-function]
Signed-off-by: Matthias Kaehlcke <mka@...omium.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Cc: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Douglas Anderson <dianders@...omium.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Link: http://lkml.kernel.org/r/20170523215132.189049-1-mka@chromium.org
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
kernel/events/core.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 407dad6..bc63f8d 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -925,11 +925,6 @@ static inline int is_cgroup_event(struct perf_event *event)
return 0;
}
-static inline u64 perf_cgroup_event_cgrp_time(struct perf_event *event)
-{
- return 0;
-}
-
static inline void update_cgrp_time_from_event(struct perf_event *event)
{
}
Powered by blists - more mailing lists