aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/setns.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-07-05 13:59:06 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-07-09 10:13:26 -0300
commit245aec7f7f4ca95b924f005d604bab9d838b5eb1 (patch)
tree3a1e7b1144592cbe5ee7033cbbc412a29404dabb /tools/perf/util/setns.c
parentperf tools: Add missing headers, mostly stdlib.h (diff)
downloadlinux-dev-245aec7f7f4ca95b924f005d604bab9d838b5eb1.tar.xz
linux-dev-245aec7f7f4ca95b924f005d604bab9d838b5eb1.zip
perf namespaces: Move the conditional setns() prototype to namespaces.h
Out of util.h, to reduce its scope, and since we have a namespaces.h header, much better to have it there, where it is related to. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-zlu81bbtccuzygh7m8nmgybc@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/setns.c')
-rw-r--r--tools/perf/util/setns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/setns.c b/tools/perf/util/setns.c
index ce8fc290fce8..48f9c0af63b2 100644
--- a/tools/perf/util/setns.c
+++ b/tools/perf/util/setns.c
@@ -1,4 +1,6 @@
-#include "util.h"
+// SPDX-License-Identifier: LGPL-2.1
+
+#include "namespaces.h"
#include <unistd.h>
#include <sys/syscall.h>