Commit e8b3ae40151e94e30a82c2cf8efa5ab4f99c8abf

Authored by Arnaldo Carvalho de Melo
1 parent 4208735d8d

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

tools/perf/util/event.h
... ... @@ -3,9 +3,9 @@
3 3  
4 4 #include <limits.h>
5 5 #include <stdio.h>
  6 +#include <linux/kernel.h>
6 7  
7 8 #include "../perf.h"
8   -#include "map.h"
9 9 #include "build-id.h"
10 10 #include "perf_regs.h"
11 11