diff options
| author | Namhyung Kim <namhyung@kernel.org> | 2014-01-09 09:00:52 -0500 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-01-13 08:06:25 -0500 |
| commit | 8a625c1f61f3dd5e4ea4b5b642650416aa101ce5 (patch) | |
| tree | d62c6214b12b6a103bd3b3c34af33475d58db547 /tools/include | |
| parent | 0050f7aa182e3e8ed34dd6cc4318e52b3df6347a (diff) | |
tools include: Move perf's linux/compiler.h to a generic place
So that it can be shared with others like libtraceevent.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Borislav Petkov <bp@suse.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1389276059-8829-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/include')
| -rw-r--r-- | tools/include/linux/compiler.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h new file mode 100644 index 000000000000..0135ccf2a00c --- /dev/null +++ b/tools/include/linux/compiler.h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | #ifndef _TOOLS_LINUX_COMPILER_H_ | ||
| 2 | #define _TOOLS_LINUX_COMPILER_H_ | ||
| 3 | |||
| 4 | #ifndef __always_inline | ||
| 5 | # define __always_inline inline __attribute__((always_inline)) | ||
| 6 | #endif | ||
| 7 | |||
| 8 | #define __user | ||
| 9 | |||
| 10 | #ifndef __attribute_const__ | ||
| 11 | # define __attribute_const__ | ||
| 12 | #endif | ||
| 13 | |||
| 14 | #ifndef __maybe_unused | ||
| 15 | # define __maybe_unused __attribute__((unused)) | ||
| 16 | #endif | ||
| 17 | |||
| 18 | #ifndef __packed | ||
| 19 | # define __packed __attribute__((__packed__)) | ||
| 20 | #endif | ||
| 21 | |||
| 22 | #ifndef __force | ||
| 23 | # define __force | ||
| 24 | #endif | ||
| 25 | |||
| 26 | #ifndef __weak | ||
| 27 | # define __weak __attribute__((weak)) | ||
| 28 | #endif | ||
| 29 | |||
| 30 | #endif /* _TOOLS_LINUX_COMPILER_H */ | ||
