aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-05-28 05:41:50 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-28 05:42:16 -0400
commitd3e78ee3d015dac1794433abb6403b6fc8e70e10 (patch)
treef66279a9b3d16f2846bdb1b733afe26a8d80da4a /include/linux/perf_counter.h
parent55717314c4e3a5180a54228a2f97e50f3496de4c (diff)
perf_counter: Fix perf_counter_init_task() on !CONFIG_PERF_COUNTERS
Pointed out by compiler warnings: tip/include/linux/perf_counter.h:644: warning: no return statement in function returning non-void Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: John Kacur <jkacur@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 2b16ed37b74c..a65ddc580514 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -641,7 +641,7 @@ perf_counter_task_sched_out(struct task_struct *task,
641 struct task_struct *next, int cpu) { } 641 struct task_struct *next, int cpu) { }
642static inline void 642static inline void
643perf_counter_task_tick(struct task_struct *task, int cpu) { } 643perf_counter_task_tick(struct task_struct *task, int cpu) { }
644static inline int perf_counter_init_task(struct task_struct *child) { } 644static inline int perf_counter_init_task(struct task_struct *child) { return 0; }
645static inline void perf_counter_exit_task(struct task_struct *child) { } 645static inline void perf_counter_exit_task(struct task_struct *child) { }
646static inline void perf_counter_do_pending(void) { } 646static inline void perf_counter_do_pending(void) { }
647static inline void perf_counter_print_debug(void) { } 647static inline void perf_counter_print_debug(void) { }