diff options
| author | Jiri Olsa <jolsa@kernel.org> | 2018-08-17 05:48:04 -0400 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-08-20 07:54:59 -0400 |
| commit | 85e1d419e71eaa39248a9fa6572502a3c802f9ca (patch) | |
| tree | cdca2c5b3bf1bed1fbf07d1186767dc491d56d45 /tools | |
| parent | d68a29c2823ff6bd7a25cb748b577f2d88c1f47a (diff) | |
perf tools: Make decompress_to_file() function static
There's no outside user of it.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180817094813.15086-5-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/perf/util/dso.c | 2 | ||||
| -rw-r--r-- | tools/perf/util/dso.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c index 8ee1faa5726f..9f4b72d8f50f 100644 --- a/tools/perf/util/dso.c +++ b/tools/perf/util/dso.c | |||
| @@ -239,7 +239,7 @@ bool is_kernel_module(const char *pathname, int cpumode) | |||
| 239 | return m.kmod; | 239 | return m.kmod; |
| 240 | } | 240 | } |
| 241 | 241 | ||
| 242 | bool decompress_to_file(const char *ext, const char *filename, int output_fd) | 242 | static bool decompress_to_file(const char *ext, const char *filename, int output_fd) |
| 243 | { | 243 | { |
| 244 | unsigned i; | 244 | unsigned i; |
| 245 | 245 | ||
diff --git a/tools/perf/util/dso.h b/tools/perf/util/dso.h index ef69de2e69ea..e1adadd1fe1e 100644 --- a/tools/perf/util/dso.h +++ b/tools/perf/util/dso.h | |||
| @@ -252,7 +252,6 @@ int dso__read_binary_type_filename(const struct dso *dso, enum dso_binary_type t | |||
| 252 | char *root_dir, char *filename, size_t size); | 252 | char *root_dir, char *filename, size_t size); |
| 253 | bool is_supported_compression(const char *ext); | 253 | bool is_supported_compression(const char *ext); |
| 254 | bool is_kernel_module(const char *pathname, int cpumode); | 254 | bool is_kernel_module(const char *pathname, int cpumode); |
| 255 | bool decompress_to_file(const char *ext, const char *filename, int output_fd); | ||
| 256 | bool dso__needs_decompress(struct dso *dso); | 255 | bool dso__needs_decompress(struct dso *dso); |
| 257 | int dso__decompress_kmodule_fd(struct dso *dso, const char *name); | 256 | int dso__decompress_kmodule_fd(struct dso *dso, const char *name); |
| 258 | int dso__decompress_kmodule_path(struct dso *dso, const char *name, | 257 | int dso__decompress_kmodule_path(struct dso *dso, const char *name, |
