perf namespaces: Remove namespaces.h from .h headers
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 22 Jan 2019 13:24:34 +0000 (11:24 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 25 Jan 2019 14:12:09 +0000 (15:12 +0100)
There we need just forward declarations, so remove it and add it just on
the .c files that actually touch the struct definitions.

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-wsjxzt99p83jubt6hu0med0f@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-probe.c
tools/perf/util/build-id.c
tools/perf/util/build-id.h
tools/perf/util/dso.c
tools/perf/util/dso.h
tools/perf/util/probe-event.c
tools/perf/util/probe-event.h
tools/perf/util/probe-file.c
tools/perf/util/thread.h
tools/perf/util/util.c

index 99de91698de1e544a68a607ba11c1bc3fc08ba73..46d3c2deeb401b9a7e16b70bd899e8540c8944e6 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "perf.h"
 #include "builtin.h"
+#include "namespaces.h"
 #include "util/util.h"
 #include "util/strlist.h"
 #include "util/strfilter.h"
index 04b1d53e4bf9a7d3606169bbb25cdb1a5d059600..07ef7fad689ca350eedb5d1f514624db3a748b47 100644 (file)
@@ -15,6 +15,7 @@
 #include <sys/types.h>
 #include "build-id.h"
 #include "event.h"
+#include "namespaces.h"
 #include "symbol.h"
 #include "thread.h"
 #include <linux/kernel.h>
index f0c565164a97aa83c35107cd5bb5511f78881001..93668f38f1ed9306adf97b56cc9175a0b53cd379 100644 (file)
@@ -6,9 +6,10 @@
 #define SBUILD_ID_SIZE (BUILD_ID_SIZE * 2 + 1)
 
 #include "tool.h"
-#include "namespaces.h"
 #include <linux/types.h>
 
+struct nsinfo;
+
 extern struct perf_tool build_id__mark_dso_hit_ops;
 struct dso;
 struct feat_fd;
index 1b17f6de957d01070756571b4816df36f2f9eb5d..cbe6e7dc6af38d6a4c9abeb742cc23a689f8476f 100644 (file)
@@ -10,6 +10,7 @@
 #include <fcntl.h>
 #include <libgen.h>
 #include "compress.h"
+#include "namespaces.h"
 #include "path.h"
 #include "symbol.h"
 #include "srcline.h"
index 56001b82d4489ec19e0b69709960bfddb7a5d1e6..2de54c0b26b2493f738c92163c0ca41fb69830e6 100644 (file)
@@ -10,9 +10,9 @@
 #include <stdio.h>
 #include "rwsem.h"
 #include <linux/bitops.h>
-#include "namespaces.h"
 #include "build-id.h"
 
+struct machine;
 struct map;
 
 enum dso_binary_type {
index 18a59fba97ff89a4dbda5be55d10525f806e6a8f..736787a18b9e847c88475125958ed02de3b372fb 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "util.h"
 #include "event.h"
+#include "namespaces.h"
 #include "strlist.h"
 #include "strfilter.h"
 #include "debug.h"
index 15a98c3a2a2fedd08923e470442712b11266a73c..05c8d571a901016148243539381aedbede13ddc3 100644 (file)
@@ -4,8 +4,9 @@
 
 #include <linux/compiler.h>
 #include <stdbool.h>
-#include "intlist.h"
-#include "namespaces.h"
+
+struct intlist;
+struct nsinfo;
 
 /* Probe related configurations */
 struct probe_conf {
index 0b1195cad0e5b7be9048b4386ff01e9c59c0b305..4062bc4412a9025b5260b93aff5cb34244d409ca 100644 (file)
@@ -20,6 +20,7 @@
 #include <sys/types.h>
 #include <sys/uio.h>
 #include <unistd.h>
+#include "namespaces.h"
 #include "util.h"
 #include "event.h"
 #include "strlist.h"
index 712dd48cc0cab6120b89ba740dbab049ea39ab3e..f3c939150f909dbfcdd00d68ae959c78762e1f08 100644 (file)
@@ -13,6 +13,7 @@
 #include <intlist.h>
 #include "rwsem.h"
 
+struct namespaces_event;
 struct thread_stack;
 struct unwind_libunwind_ops;
 
index 093352e93d50674e17ddfe7146658d3bfe86dbac..320b0fef249afe433064c9281178ff71c1884554 100644 (file)
@@ -2,6 +2,7 @@
 #include "../perf.h"
 #include "util.h"
 #include "debug.h"
+#include "namespaces.h"
 #include <api/fs/fs.h>
 #include <sys/mman.h>
 #include <sys/stat.h>