Skip to content

Commit 5068b52

Browse files
committed
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>
1 parent 7de96c3 commit 5068b52

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎tools/perf/ui/setup.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ pthread_mutex_t ui__lock = PTHREAD_MUTEX_INITIALIZER;
1010
void *perf_gtk_handle;
1111
int use_browser = -1;
1212

13+
#define PERF_GTK_DSO "libperf-gtk.so"
14+
1315
#ifdef HAVE_GTK2_SUPPORT
16+
1417
static int setup_gtk_browser(void)
1518
{
1619
int (*perf_ui_init)(void);

‎tools/perf/util/util.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
#endif
2323
#endif
2424

25-
#define PERF_GTK_DSO "libperf-gtk.so"
26-
2725
/* General helper functions */
2826
void usage(const char *err) NORETURN;
2927
void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2)));

0 commit comments

Comments
 (0)