perf tools: Use __maybe_used for unused variables
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / tools / perf / util / include / linux / compiler.h
CommitLineData
5a116dd2
FW
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
195bcbf5 8#ifndef __attribute_const__
5a116dd2 9#define __attribute_const__
195bcbf5 10#endif
5a116dd2 11
1d037ca1
IT
12#ifndef __maybe_unused
13#define __maybe_unused __attribute__((unused))
14#endif
71ad0f5e 15#define __packed __attribute__((__packed__))
618038df 16
86d5a70c
IT
17#ifndef __force
18#define __force
19#endif
20
5a116dd2 21#endif