[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1353302917-13995-32-git-send-email-josh@joshtriplett.org>
Date: Sun, 18 Nov 2012 21:28:10 -0800
From: Josh Triplett <josh@...htriplett.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Paul Mackerras <paulus@...ba.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
linux-kernel@...r.kernel.org
Cc: Josh Triplett <josh@...htriplett.org>
Subject: [PATCH 31/58] perf: cgroup: Drop unused perf_cgroup_switch stub
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@...htriplett.org>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists