perf tools: Move __used from perf.h to linux/compiler.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 25 Mar 2010 22:58:59 +0000 (19:58 -0300)
committerIngo Molnar <mingo@elte.hu>
Fri, 26 Mar 2010 07:52:59 +0000 (08:52 +0100)
Just like in the kernel and also to remove the need to include
perf.h in the symbol subsystem.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1269557941-15617-4-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/perf.h
tools/perf/util/include/linux/compiler.h

index aa786158b66814c66a1a86baa4edea6b1097aef2..ec212748d651904a04352cac3a681a3db9b89277 100644 (file)
@@ -106,8 +106,6 @@ static inline unsigned long long rdclock(void)
 #define __user
 #define asmlinkage
 
-#define __used         __attribute__((__unused__))
-
 #define unlikely(x)    __builtin_expect(!!(x), 0)
 #define min(x, y) ({                           \
        typeof(x) _min1 = (x);                  \
index dfb0713ed47ff97ec4f5e5f7af0d11a8fb7c6566..791f9dd27ebffd3166f6535c629c0595d073b3db 100644 (file)
@@ -7,4 +7,6 @@
 #define __user
 #define __attribute_const__
 
+#define __used         __attribute__((__unused__))
+
 #endif