diff options
author | 2017-04-17 11:39:06 -0300 | |
---|---|---|
committer | 2017-04-19 13:01:44 -0300 | |
commit | 877a7a11050ee4d465364c57f8fbf78f6b1a2559 (patch) | |
tree | 26997a41ae82b4404b5b2e9730f8ffcfae367f6e /tools/perf/util/sort.c | |
parent | tools include: Move ARRAY_SIZE() to linux/kernel.h (diff) | |
download | linux-877a7a11050ee4d465364c57f8fbf78f6b1a2559.tar.gz linux-877a7a11050ee4d465364c57f8fbf78f6b1a2559.tar.bz2 linux-877a7a11050ee4d465364c57f8fbf78f6b1a2559.zip |
perf tools: Add include <linux/kernel.h> where ARRAY_SIZE() is used
To pave the way for further cleanups where linux/kernel.h may stop being
included in some header.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-qqxan6tfsl6qx3l0v3nwgjvk@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/sort.c')
-rw-r--r-- | tools/perf/util/sort.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 73f3ec1cf2a0..13b9af1d1b45 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -7,6 +7,7 @@ #include "evlist.h" #include <traceevent/event-parse.h> #include "mem-events.h" +#include <linux/kernel.h> regex_t parent_regex; const char default_parent_pattern[] = "^sys_|^do_page_fault"; |