From: Arnaldo Carvalho de Melo Date: Thu, 17 May 2018 17:51:23 +0000 (-0300) Subject: tools lib api fs tracing_path: Make tracing_events_path private X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=789e465058352122023e4fa7de8dcf5c513e0b0b;p=openwrt%2Fstaging%2Fblogic.git tools lib api fs tracing_path: Make tracing_events_path private Not anymore accessed outside this library, keep it private. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-wg1m07flfrg1rm06jjzie8si@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/lib/api/fs/tracing_path.c b/tools/lib/api/fs/tracing_path.c index 9b451af0721c..120037496f77 100644 --- a/tools/lib/api/fs/tracing_path.c +++ b/tools/lib/api/fs/tracing_path.c @@ -15,8 +15,7 @@ static char tracing_mnt[PATH_MAX] = "/sys/kernel/debug"; static char tracing_path[PATH_MAX] = "/sys/kernel/debug/tracing"; -char tracing_events_path[PATH_MAX] = "/sys/kernel/debug/tracing/events"; - +static char tracing_events_path[PATH_MAX] = "/sys/kernel/debug/tracing/events"; static void __tracing_path_set(const char *tracing, const char *mountpoint) { diff --git a/tools/lib/api/fs/tracing_path.h b/tools/lib/api/fs/tracing_path.h index 904d085b2ae7..a19136b086dc 100644 --- a/tools/lib/api/fs/tracing_path.h +++ b/tools/lib/api/fs/tracing_path.h @@ -5,8 +5,6 @@ #include #include -extern char tracing_events_path[]; - DIR *tracing_events__opendir(void); void tracing_path_set(const char *mountpoint);