perf block-range: Add missing headers
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: e7a795d3ba62897d326f1732d01325594a6ef64f Gitweb: https://git.kernel.org/tip/e7a795d3ba62897d326f1732d01325594a6ef64f Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 22 Jan 2019 11:03:49 -0200 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Fri, 25 Jan 2019 15:12:09 +0100
perf block-range: Add missing headers
Some are being obtained indirectly and as we prune unnecessary includes, this stops working, fix it by adding the headers for things used in these file.
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/util/block-range.c | 2 ++ tools/perf/util/block-range.h | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-)
tools/perf/util/block-range.c +2 -0
@@ -1,6 +1,8 @@// SPDX-License-Identifier: GPL-2.0 #include "block-range.h" #include "annotate.h" +#include <assert.h> +#include <stdlib.h> struct {struct rb_root root;
tools/perf/util/block-range.h +5 -1
@@ -2,7 +2,11 @@#ifndef __PERF_BLOCK_RANGE_H#define __PERF_BLOCK_RANGE_H -#include "symbol.h" +#include <stdbool.h> +#include <linux/rbtree.h> +#include <linux/types.h> + +struct symbol ;/* * struct block_range - non-overlapping parts of basic blocks