]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
perf tools: Add the right header to obtain PERF_ALIGN()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 20 Apr 2017 00:33:07 +0000 (21:33 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Apr 2017 16:43:34 +0000 (13:43 -0300)
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>
tools/perf/util/event.h

index eb7a7b200737713a929883bc250093bd687e48ad..db2de6413518adffc63e8c0c57d2b304696760df 100644 (file)
@@ -3,9 +3,9 @@
 
 #include <limits.h>
 #include <stdio.h>
+#include <linux/kernel.h>
 
 #include "../perf.h"
-#include "map.h"
 #include "build-id.h"
 #include "perf_regs.h"