perf namespaces: Remove namespaces.h from .h headers
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 40f3b2d20b52b090976a60fe56fb838a45eb362f Gitweb: https://git.kernel.org/tip/40f3b2d20b52b090976a60fe56fb838a45eb362f Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 22 Jan 2019 11:24:34 -0200 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Fri, 25 Jan 2019 15:12:09 +0100
perf namespaces: Remove namespaces.h from .h headers
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 <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/builtin-probe.c | 1 + tools/perf/util/build-id.c | 1 + tools/perf/util/build-id.h | 3 ++- tools/perf/util/dso.c | 1 + tools/perf/util/dso.h | 2 +- tools/perf/util/probe-event.c | 1 + tools/perf/util/probe-event.h | 5 +++-- tools/perf/util/probe-file.c | 1 + tools/perf/util/thread.h | 1 + tools/perf/util/util.c | 1 + 10 files changed, 13 insertions(+), 4 deletions(-)
tools/perf/builtin-probe.c +1 -0
@@ -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"
tools/perf/util/build-id.c +1 -0
@@ -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>
tools/perf/util/build-id.h +2 -1
@@ -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 ;
tools/perf/util/dso.c +1 -0
@@ -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"
tools/perf/util/dso.h +1 -1
@@ -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 {
tools/perf/util/probe-event.c +1 -0
@@ -35,6 +35,7 @@#include "util.h" #include "event.h" +#include "namespaces.h" #include "strlist.h" #include "strfilter.h" #include "debug.h"
tools/perf/util/probe-event.h +3 -2
@@ -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 {
tools/perf/util/probe-file.c +1 -0
@@ -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"
tools/perf/util/thread.h +1 -0
@@ -13,6 +13,7 @@#include <intlist.h> #include "rwsem.h" +struct namespaces_event ;struct thread_stack ;struct unwind_libunwind_ops ;
tools/perf/util/util.c +1 -0
@@ -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>