perf hists: Fix compilation when NO_NEWT_SUPPORT is set
authorStephane Eranian <eranian@google.com>
Wed, 12 Oct 2011 12:03:28 +0000 (14:03 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 13 Oct 2011 11:48:58 +0000 (08:48 -0300)
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@quad
Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.h

index 7ea1e560e008a5fa6739af62acc11bb1923281c3..7416521f7fea49693a26e40b29d4e8ae21ee4de5 100644 (file)
@@ -103,16 +103,20 @@ struct perf_evlist;
 #ifdef NO_NEWT_SUPPORT
 static inline
 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)
 {
        return 0;
 }
 
 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 *arg __used, int delay_secs __used);
+                                          void *arg __used,
+                                          int delay_secs __used)
 {
        return 0;
 }