aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/tests/builtin-test.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-09-11 10:50:26 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-09-13 09:49:16 -0300
commitc23c2a0f236601c635d9a9d18d7993641e72aa8c (patch)
tree914f529f989ac6ae336ef6bf62ef6216a6d8dab8 /tools/perf/tests/builtin-test.c
parentperf config: Allow creating empty config set for config file autogeneration (diff)
downloadwireguard-linux-c23c2a0f236601c635d9a9d18d7993641e72aa8c.tar.xz
wireguard-linux-c23c2a0f236601c635d9a9d18d7993641e72aa8c.zip
perf tools: Make copyfile_offset() static
There are no usage outside util.c and this is the only remaining reason for fcntl.h to be included in util.h, to get the loff_t definition in Alpine Linux, so make it static. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-2dzlsao7k6ihozs5karw6kpx@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/builtin-test.c')
-rw-r--r--tools/perf/tests/builtin-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c
index 377bea009163..d0fee35db0e7 100644
--- a/tools/perf/tests/builtin-test.c
+++ b/tools/perf/tests/builtin-test.c
@@ -3,6 +3,7 @@
*
* Builtin regression testing command: ever growing number of sanity tests
*/
+#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>