diff options
| author | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
| commit | 8e4bff4cab0ddac6060645b0715210484d02ff40 (patch) | |
| tree | 3a5c3024371a04692a3a6d9974d001cdff8ebf84 /tools/perf/util/include/linux/compiler.h | |
Diffstat (limited to 'tools/perf/util/include/linux/compiler.h')
| -rw-r--r-- | tools/perf/util/include/linux/compiler.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/perf/util/include/linux/compiler.h b/tools/perf/util/include/linux/compiler.h new file mode 100644 index 00000000..96b919da --- /dev/null +++ b/tools/perf/util/include/linux/compiler.h @@ -0,0 +1,21 @@ +#ifndef _PERF_LINUX_COMPILER_H_ +#define _PERF_LINUX_COMPILER_H_ + +#ifndef __always_inline +#define __always_inline inline +#endif +#define __user +#ifndef __attribute_const__ +#define __attribute_const__ +#endif + +#ifndef __maybe_unused +#define __maybe_unused __attribute__((unused)) +#endif +#define __packed __attribute__((__packed__)) + +#ifndef __force +#define __force +#endif + +#endif |
