mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-10-19 06:43:56 +00:00
Add compiler.h file to support using kernel error check funciotns(e.g ERR_PTR, PTR_ERR and so on). Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
17 lines
293 B
C
17 lines
293 B
C
#ifndef _PERF_LINUX_COMPILER_H_
|
|
#define _PERF_LINUX_COMPILER_H_
|
|
|
|
#ifndef __always_inline
|
|
#define __always_inline inline
|
|
#endif
|
|
#define __user
|
|
#define __attribute_const__
|
|
|
|
#define __used __attribute__((__unused__))
|
|
#define __iomem
|
|
#define __force
|
|
#define __must_check
|
|
#define unlikely
|
|
|
|
#endif
|