Skip to content

Commit

Permalink
perf tools: Move __used from perf.h to linux/compiler.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Mar 26, 2010
1 parent 4b8cf84 commit 618038d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/perf/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
Expand Down
2 changes: 2 additions & 0 deletions tools/perf/util/include/linux/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
#define __user
#define __attribute_const__

#define __used __attribute__((__unused__))

#endif

0 comments on commit 618038d

Please sign in to comment.