Skip to content

Commit

Permalink
perf ui gtk: Move gtk .so name to the only place where it is used
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaldo Carvalho de Melo committed Apr 26, 2017
1 parent 7de96c3 commit 5068b52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tools/perf/ui/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions tools/perf/util/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit 5068b52

Please sign in to comment.