Skip to contentSkip to conversation

perf ui gtk: Move gtk .so name to the only place where it is used

tip:perf/urgent tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message May 3, 2017 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  5068b52f732157385d9dccd205bc4043da3a3cce
Gitweb:     http://git.kernel.org/tip/5068b52f732157385d9dccd205bc4043da3a3cce
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Wed, 26 Apr 2017 15:31:57 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 26 Apr 2017 15:31:57 -0300

perf ui gtk: Move gtk .so name to the only place where it is used

No need to pollute util.h with this.

---
 tools/perf/ui/setup.c  | 3 +++
 tools/perf/util/util.h | 2 --
 2 files changed, 3 insertions(+), 2 deletions(-)
tools/perf/ui/setup.c +3 -0
index 5ea0b40..caf1ce6 100644
@@ -10,7 +10,10 @@ pthread_mutex_t ui__lock = PTHREAD_MUTEX_INITIALIZER;
 void *perf_gtk_handle;
 int use_browser = -1;
 
+#define PERF_GTK_DSO "libperf-gtk.so"
+
 #ifdef HAVE_GTK2_SUPPORT
+
 static int setup_gtk_browser(void)
 {
 	int (*perf_ui_init)(void);
tools/perf/util/util.h +0 -2
index 622c2d2..dabdc81 100644
@@ -22,8 +22,6 @@
 #endif
 #endif
 
-#define PERF_GTK_DSO  "libperf-gtk.so"
-
 /* General helper functions */
 void usage(const char *err) NORETURN;
 void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2)));