Define noinline and __maybe_unused macros in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
This commit is contained in:
parent
3c7c22a9aa
commit
0945850a32
@ -64,6 +64,7 @@
|
|||||||
#define __attribute_const__ __attribute__((__const__))
|
#define __attribute_const__ __attribute__((__const__))
|
||||||
#undef __always_inline
|
#undef __always_inline
|
||||||
#define __always_inline inline
|
#define __always_inline inline
|
||||||
|
#define noinline __noinline
|
||||||
#define ____cacheline_aligned __aligned(CACHE_LINE_SIZE)
|
#define ____cacheline_aligned __aligned(CACHE_LINE_SIZE)
|
||||||
|
|
||||||
#define likely(x) __builtin_expect(!!(x), 1)
|
#define likely(x) __builtin_expect(!!(x), 1)
|
||||||
@ -71,6 +72,7 @@
|
|||||||
#define typeof(x) __typeof(x)
|
#define typeof(x) __typeof(x)
|
||||||
|
|
||||||
#define uninitialized_var(x) x = x
|
#define uninitialized_var(x) x = x
|
||||||
|
#define __maybe_unused __unused
|
||||||
#define __always_unused __unused
|
#define __always_unused __unused
|
||||||
#define __must_check __result_use_check
|
#define __must_check __result_use_check
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user