diff options
author | Jiri Olsa <jolsa@kernel.org> | 2015-09-02 03:56:38 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-09-04 11:00:59 -0400 |
commit | 41e3a1fece31d0b2383281e4a917ff4b16fa9223 (patch) | |
tree | f3d288da8cdb3b6821cdfe263e375c4fc732f6c0 /tools/lib/api | |
parent | b86b0d3570273c6ddc16b1972e82bf7778346286 (diff) |
tools lib api fs: Move SYSFS_MAGIC PROC_SUPER_MAGIC into fs.c
There's no need to export SYSFS_MAGIC PROC_SUPER_MAGIC in fs.h. Leave
them in the fs.c.
Link: http://lkml.kernel.org/n/tip-b2cd1bb7yvbazq5oua24oz18@git.kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Raphael Beamonte <raphael.beamonte@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1441180605-24737-9-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/api')
-rw-r--r-- | tools/lib/api/fs/fs.c | 8 | ||||
-rw-r--r-- | tools/lib/api/fs/fs.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tools/lib/api/fs/fs.c b/tools/lib/api/fs/fs.c index 5e838d3c419d..0700eb953495 100644 --- a/tools/lib/api/fs/fs.c +++ b/tools/lib/api/fs/fs.c | |||
@@ -18,6 +18,14 @@ | |||
18 | #define _STR(x) #x | 18 | #define _STR(x) #x |
19 | #define STR(x) _STR(x) | 19 | #define STR(x) _STR(x) |
20 | 20 | ||
21 | #ifndef SYSFS_MAGIC | ||
22 | #define SYSFS_MAGIC 0x62656572 | ||
23 | #endif | ||
24 | |||
25 | #ifndef PROC_SUPER_MAGIC | ||
26 | #define PROC_SUPER_MAGIC 0x9fa0 | ||
27 | #endif | ||
28 | |||
21 | static const char * const sysfs__fs_known_mountpoints[] = { | 29 | static const char * const sysfs__fs_known_mountpoints[] = { |
22 | "/sys", | 30 | "/sys", |
23 | 0, | 31 | 0, |
diff --git a/tools/lib/api/fs/fs.h b/tools/lib/api/fs/fs.h index fd6288d73383..674efc8dfd9b 100644 --- a/tools/lib/api/fs/fs.h +++ b/tools/lib/api/fs/fs.h | |||
@@ -9,14 +9,6 @@ | |||
9 | #define PATH_MAX 4096 | 9 | #define PATH_MAX 4096 |
10 | #endif | 10 | #endif |
11 | 11 | ||
12 | #ifndef SYSFS_MAGIC | ||
13 | #define SYSFS_MAGIC 0x62656572 | ||
14 | #endif | ||
15 | |||
16 | #ifndef PROC_SUPER_MAGIC | ||
17 | #define PROC_SUPER_MAGIC 0x9fa0 | ||
18 | #endif | ||
19 | |||
20 | const char *sysfs__mountpoint(void); | 12 | const char *sysfs__mountpoint(void); |
21 | const char *procfs__mountpoint(void); | 13 | const char *procfs__mountpoint(void); |
22 | 14 | ||