OpenCloudOS-Kernel/tools/perf/util/include/linux
Paul Mackerras ee3d250446 perf tools: Fix compilation on powerpc
Currently, perf fails to compile on powerpc with this error:

     CC util/header.o
 In file included from util/../perf.h:17,
                  from util/header.c:9:
 util/../../../arch/powerpc/include/asm/unistd.h:360:27: error:
 linux/linkage.h: No such file or directory make: ***
 [util/header.o] Error 1

The reason is that we still have a #define __KERNEL__ in effect
at the point where <asm/unistd.h> gets included, which means we
get extra stuff that we don't need or want.

This fixes the problem by undefining __KERNEL__ once we have
included the file for which we need __KERNEL__ defined.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <19211.24287.453183.78836@cargo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-11-24 08:35:10 +01:00
..
bitmap.h perf tools: Bring linear set of section headers for features 2009-11-11 07:30:19 +01:00
bitops.h perf tools: Fix compilation on powerpc 2009-11-24 08:35:10 +01:00
compiler.h perf tools: Use kernel bitmap library 2009-10-19 09:26:34 +02:00
ctype.h perf tools: Bring linear set of section headers for features 2009-11-11 07:30:19 +01:00
kernel.h perf tools: Unify debug messages mechanisms 2009-10-23 08:22:47 +02:00
list.h perf_counter tools: Share list.h with the kernel 2009-07-01 22:37:23 +02: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 tools: Drop asm/types.h wrapper 2009-10-23 07:55:19 +02:00