[PATCH 31/58] perf: cgroup: Drop unused perf_cgroup_switch stub

From: Josh Triplett
Date: Mon Nov 19 2012 - 00:30:45 EST


kernel/events/core.c defines a no-op stub of perf_cgroup_switch when
CONFIG_CGROUP_PERF=n. However, nothing actually calls
perf_cgroup_switch outside of an #ifdef CONFIG_CGROUP_PERF. So, drop
the stub.

This also eliminates a warning from gcc (-Wmissing-prototypes) and from
Sparse (-Wdecl).

kernel/events/core.c:604:1: warning: no previous prototype for âperf_cgroup_switchâ [-Wmissing-prototypes]

Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---
kernel/events/core.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/kernel/events/core.c b/kernel/events/core.c
index 01ba4db..543638a 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -600,11 +600,6 @@ perf_cgroup_set_timestamp(struct task_struct *task,
{
}

-void
-perf_cgroup_switch(struct task_struct *task, struct task_struct *next)
-{
-}
-
static inline void
perf_cgroup_set_shadow_time(struct perf_event *event, u64 now)
{
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/