lkml.org 
[lkml]   [2011]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] perf: 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.

Signed-off-by: Stephane Eranian <eranian@google.com>
---

diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 395b2e7..74f846d 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -109,16 +109,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;
}

\
 
 \ /
  Last update: 2011-10-12 14:05    [W:0.046 / U:12.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site