Frederic Weisbecker | 5a116dd | 2009-10-17 17:12:33 +0200 | [diff] [blame] | 1 | #ifndef _PERF_LINUX_COMPILER_H_ |
| 2 | #define _PERF_LINUX_COMPILER_H_ |
| 3 | |
| 4 | #ifndef __always_inline |
| 5 | #define __always_inline inline |
| 6 | #endif |
| 7 | #define __user |
Josh Boyer | 195bcbf | 2011-08-18 07:37:21 -0400 | [diff] [blame] | 8 | #ifndef __attribute_const__ |
Frederic Weisbecker | 5a116dd | 2009-10-17 17:12:33 +0200 | [diff] [blame] | 9 | #define __attribute_const__ |
Josh Boyer | 195bcbf | 2011-08-18 07:37:21 -0400 | [diff] [blame] | 10 | #endif |
Frederic Weisbecker | 5a116dd | 2009-10-17 17:12:33 +0200 | [diff] [blame] | 11 | |
Arnaldo Carvalho de Melo | 618038d | 2010-03-25 19:58:59 -0300 | [diff] [blame] | 12 | #define __used __attribute__((__unused__)) |
Jiri Olsa | 71ad0f5 | 2012-08-07 15:20:46 +0200 | [diff] [blame] | 13 | #define __packed __attribute__((__packed__)) |
Arnaldo Carvalho de Melo | 618038d | 2010-03-25 19:58:59 -0300 | [diff] [blame] | 14 | |
Irina Tirdea | 86d5a70 | 2012-09-11 01:14:59 +0300 | [diff] [blame^] | 15 | #ifndef __force |
| 16 | #define __force |
| 17 | #endif |
| 18 | |
Frederic Weisbecker | 5a116dd | 2009-10-17 17:12:33 +0200 | [diff] [blame] | 19 | #endif |