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

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>

+1 -1
+1 -1
tools/perf/util/event.h
··· 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