Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-1p65lyeebc2ose0lbozvemda@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+7 -1
+2
tools/perf/util/block-range.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include "block-range.h" 3 3 #include "annotate.h" 4 + #include <assert.h> 5 + #include <stdlib.h> 4 6 5 7 struct { 6 8 struct rb_root root;
+5 -1
tools/perf/util/block-range.h
··· 2 2 #ifndef __PERF_BLOCK_RANGE_H 3 3 #define __PERF_BLOCK_RANGE_H 4 4 5 - #include "symbol.h" 5 + #include <stdbool.h> 6 + #include <linux/rbtree.h> 7 + #include <linux/types.h> 8 + 9 + struct symbol; 6 10 7 11 /* 8 12 * struct block_range - non-overlapping parts of basic blocks