Skip to contentSkip to conversation

tools lib api fs tracing_path: Make tracing_events_path private

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message May 19, 2018

lore
Share & tools
lore
#0 lore raw
Commit-ID:  789e465058352122023e4fa7de8dcf5c513e0b0b
Gitweb:     https://git.kernel.org/tip/789e465058352122023e4fa7de8dcf5c513e0b0b
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Thu, 17 May 2018 14:51:23 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 17 May 2018 14:51:23 -0300

tools lib api fs tracing_path: Make tracing_events_path private

Not anymore accessed outside this library, keep it private.

---
 tools/lib/api/fs/tracing_path.c | 3 +--
 tools/lib/api/fs/tracing_path.h | 2 --
 2 files changed, 1 insertion(+), 4 deletions(-)
tools/lib/api/fs/tracing_path.c +1 -2
index 9b451af0721c..120037496f77 100644
@@ -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)
 {
tools/lib/api/fs/tracing_path.h +0 -2
index 904d085b2ae7..a19136b086dc 100644
@@ -5,8 +5,6 @@
 #include <linux/types.h>
 #include <dirent.h>
 
-extern char tracing_events_path[];
-
 DIR *tracing_events__opendir(void);
 
 void tracing_path_set(const char *mountpoint);