diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-26 14:31:57 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-26 14:31:57 -0400 |
commit | 5068b52f732157385d9dccd205bc4043da3a3cce (patch) | |
tree | 89f1d6da8be7450dfd90625c3f82d959ed8462be | |
parent | 7de96c3e759e49b1d176722ed26c14c057bac34f (diff) |
perf ui gtk: Move gtk .so name to the only place where it is used
No need to pollute util.h with this.
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/n/tip-kec0chbdtgrd71o3oi2kz2zt@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/ui/setup.c | 3 | ||||
-rw-r--r-- | tools/perf/util/util.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/ui/setup.c b/tools/perf/ui/setup.c index 5ea0b40c4fc2..caf1ce6f5152 100644 --- a/tools/perf/ui/setup.c +++ b/tools/perf/ui/setup.c | |||
@@ -10,7 +10,10 @@ pthread_mutex_t ui__lock = PTHREAD_MUTEX_INITIALIZER; | |||
10 | void *perf_gtk_handle; | 10 | void *perf_gtk_handle; |
11 | int use_browser = -1; | 11 | int use_browser = -1; |
12 | 12 | ||
13 | #define PERF_GTK_DSO "libperf-gtk.so" | ||
14 | |||
13 | #ifdef HAVE_GTK2_SUPPORT | 15 | #ifdef HAVE_GTK2_SUPPORT |
16 | |||
14 | static int setup_gtk_browser(void) | 17 | static int setup_gtk_browser(void) |
15 | { | 18 | { |
16 | int (*perf_ui_init)(void); | 19 | int (*perf_ui_init)(void); |
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 622c2d251ad3..dabdc810ffdc 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -22,8 +22,6 @@ | |||
22 | #endif | 22 | #endif |
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | #define PERF_GTK_DSO "libperf-gtk.so" | ||
26 | |||
27 | /* General helper functions */ | 25 | /* General helper functions */ |
28 | void usage(const char *err) NORETURN; | 26 | void usage(const char *err) NORETURN; |
29 | void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2))); | 27 | void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2))); |