Commit 33e27312 authored by Stephane Eranian's avatar Stephane Eranian Committed by Arnaldo Carvalho de Melo

perf hists: Fix compilation when NO_NEWT_SUPPORT is set

This patch, relative to tip/master, makes perf compile when
NO_NEWT_SUPPORT is set.  It also fixes the line formatting to fit 80
columns.

Please test with NO_NEWT.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20111012120328.GA1619@quadSigned-off-by: default avatarStephane Eranian <eranian@google.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent df71d95f
...@@ -103,16 +103,20 @@ struct perf_evlist; ...@@ -103,16 +103,20 @@ struct perf_evlist;
#ifdef NO_NEWT_SUPPORT #ifdef NO_NEWT_SUPPORT
static inline static inline
int perf_evlist__tui_browse_hists(struct perf_evlist *evlist __used, int perf_evlist__tui_browse_hists(struct perf_evlist *evlist __used,
const char *help __used, void(*timer)(void *arg) __used, void *arg, const char *help __used,
void(*timer)(void *arg) __used,
void *arg __used,
int refresh __used) int refresh __used)
{ {
return 0; return 0;
} }
static inline int hist_entry__tui_annotate(struct hist_entry *self __used, static inline int hist_entry__tui_annotate(struct hist_entry *self __used,
int evidx __used, int nr_events __used, int evidx __used,
int nr_events __used,
void(*timer)(void *arg) __used, void(*timer)(void *arg) __used,
void *arg __used, int delay_secs __used); void *arg __used,
int delay_secs __used)
{ {
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment