perf: Move mmap page data_head offset assertion out of header
authorJiri Olsa <jolsa@redhat.com>
Fri, 23 Mar 2012 14:41:20 +0000 (15:41 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 24 Mar 2012 07:46:59 +0000 (08:46 +0100)
commitb01c3a0010aabadf745f3e7fdb9cab682e0a28a2
treede5fab4234ea646edbbac28f3d7dfb28f28bb601
parent04a54d27ce9698d108d29c8a6a50c28f7446336b
perf: Move mmap page data_head offset assertion out of header

Having the build time assertion in header is making the perf
build fail on x86 with:

  ../../include/linux/perf_event.h:411:32: error: variably modified \
‘__assert_mmap_data_head_offset’ at file scope [-Werror]

I'm moving the build time validation out of the header, because
I think it's better than to lessen the perf build warn/error
check.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: acme@redhat.com
Cc: a.p.zijlstra@chello.nl
Cc: paulus@samba.org
Cc: cjashfor@linux.vnet.ibm.com
Cc: fweisbec@gmail.com
Link: http://lkml.kernel.org/r/1332513680-7870-1-git-send-email-jolsa@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/perf_event.h
kernel/events/core.c