Skip to contentSkip to conversation

perf: fix compilation when NO_NEWT_SUPPORT is set

PATCH In review Stephane Eranian 2 participants 2 messages Oct 12, 2011 – Oct 13, 2011 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

tools/perf/util/hist.h +7 -3
index 395b2e7..74f846d 100644
@@ -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;
 }
#1 lore raw

Em Wed, Oct 12, 2011 at 02:03:28PM +0200, Stephane Eranian escreveu:

Quoted 6 lines

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.

Thanks, sorry about that.

- Arnaldo