diff options
Diffstat (limited to 'src/tools/perf/util/include/linux/compiler.h')
-rw-r--r-- | src/tools/perf/util/include/linux/compiler.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tools/perf/util/include/linux/compiler.h b/src/tools/perf/util/include/linux/compiler.h new file mode 100644 index 0000000..96b919d --- /dev/null +++ b/src/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 |