diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-19 20:33:07 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-24 12:43:34 -0400 |
commit | e8b3ae40151e94e30a82c2cf8efa5ab4f99c8abf (patch) | |
tree | ce477081642e687ae97604c984455c1c34ead1ef | |
parent | 4208735d8de58f1cbc2e0009d87514ce06681e5a (diff) |
perf tools: Add the right header to obtain PERF_ALIGN()
The util/event.h header needs PERF_ALIGN(), but wasn't including
linux/kernel.h, where it is defined, instead it was getting it by
luck by including map.h, which it doesn't need at all.
Fix it by including the right header.
Link: http://lkml.kernel.org/n/tip-nf3t9blzm5ncoxsczi8oy9mx@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index eb7a7b200737..db2de6413518 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
@@ -3,9 +3,9 @@ | |||
3 | 3 | ||
4 | #include <limits.h> | 4 | #include <limits.h> |
5 | #include <stdio.h> | 5 | #include <stdio.h> |
6 | #include <linux/kernel.h> | ||
6 | 7 | ||
7 | #include "../perf.h" | 8 | #include "../perf.h" |
8 | #include "map.h" | ||
9 | #include "build-id.h" | 9 | #include "build-id.h" |
10 | #include "perf_regs.h" | 10 | #include "perf_regs.h" |
11 | 11 | ||