android_kernel_oneplus_msm8998/tools/perf/util/include/linux
Josh Boyer 195bcbf507 perf tools: Fix build against newer glibc
Upstream glibc commit 295e904 added a definition for __attribute_const__
to cdefs.h.  This causes the following error when building perf:

util/include/linux/compiler.h:8:0: error: "__attribute_const__"
redefined [-Werror] /usr/include/sys/cdefs.h:226:0: note: this is the
location of the previous definition

Wrap __attribute_const__ in #ifndef as we do for __always_inline.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110818113720.GL2227@zod.bos.redhat.com
Signed-off-by: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2011-08-18 07:24:53 -03:00
..
bitmap.h perf tools: Don't use code surrounded by __KERNEL__ 2010-05-02 12:00:44 -03:00
bitops.h perf tools: Add missing header, fixes build 2011-01-22 19:15:39 -02:00
compiler.h perf tools: Fix build against newer glibc 2011-08-18 07:24:53 -03:00
const.h perf tools: Fix build on older systems 2011-05-26 11:16:29 -03:00
ctype.h perf tools: Bring linear set of section headers for features 2009-11-11 07:30:19 +01:00
hash.h perf: Add util/include/linuxhash.h to include hash.h of kernel 2010-01-31 08:27:53 +01:00
kernel.h perf options: Check v type in OPT_U?INTEGER 2010-05-17 15:43:38 -03:00
linkage.h perf bench: Add feature that measures the performance of the arch/x86/lib/memcpy_64.S memcpy routines via 'perf bench mem' 2010-11-26 08:15:57 +01:00
list.h Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2011-05-23 09:25:52 -07:00
module.h perf_counter tools: Share rbtree.with the kernel 2009-07-01 22:37:22 +02:00
poison.h perf_counter tools: Share list.h with the kernel 2009-07-01 22:37:23 +02:00
prefetch.h perf_counter tools: Share list.h with the kernel 2009-07-01 22:37:23 +02:00
rbtree.h perf_counter tools: Share rbtree.with the kernel 2009-07-01 22:37:22 +02:00
string.h perf tools: Add missing tools/perf/util/include/string.h 2009-10-20 02:59:34 +02:00
types.h perf: Add back list_head data types 2010-08-12 21:50:00 +02:00