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

perf tools: Move __used from perf.h to linux/compiler.h

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>

authored by

Arnaldo Carvalho de Melo and committed by
Ingo Molnar
618038df 4b8cf846

+2 -2
-2
tools/perf/perf.h
··· 106 106 #define __user 107 107 #define asmlinkage 108 108 109 - #define __used __attribute__((__unused__)) 110 - 111 109 #define unlikely(x) __builtin_expect(!!(x), 0) 112 110 #define min(x, y) ({ \ 113 111 typeof(x) _min1 = (x); \
+2
tools/perf/util/include/linux/compiler.h
··· 7 7 #define __user 8 8 #define __attribute_const__ 9 9 10 + #define __used __attribute__((__unused__)) 11 + 10 12 #endif