Contributors: 6
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Riccardo Mancini |
96 |
67.61% |
1 |
12.50% |
Arnaldo Carvalho de Melo |
30 |
21.13% |
3 |
37.50% |
Yang Jihong |
11 |
7.75% |
1 |
12.50% |
Linus Torvalds |
2 |
1.41% |
1 |
12.50% |
Frédéric Weisbecker |
2 |
1.41% |
1 |
12.50% |
Greg Kroah-Hartman |
1 |
0.70% |
1 |
12.50% |
Total |
142 |
|
8 |
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_COMPILER_TYPES_H
#define __LINUX_COMPILER_TYPES_H
/* Builtins */
/*
* __has_builtin is supported on gcc >= 10, clang >= 3 and icc >= 21.
* In the meantime, to support gcc < 10, we implement __has_builtin
* by hand.
*/
#ifndef __has_builtin
#define __has_builtin(x) (0)
#endif
#ifdef __CHECKER__
/* context/locking */
# define __must_hold(x) __attribute__((context(x,1,1)))
# define __acquires(x) __attribute__((context(x,0,1)))
# define __releases(x) __attribute__((context(x,1,0)))
# define __acquire(x) __context__(x,1)
# define __release(x) __context__(x,-1)
# define __cond_lock(x,c) ((c) ? ({ __acquire(x); 1; }) : 0)
#else /* __CHECKER__ */
/* context/locking */
# define __must_hold(x)
# define __acquires(x)
# define __releases(x)
# define __acquire(x) (void)0
# define __release(x) (void)0
# define __cond_lock(x,c) (c)
#endif /* __CHECKER__ */
/* Compiler specific macros. */
#ifdef __GNUC__
#include <linux/compiler-gcc.h>
#endif
#ifndef asm_goto_output
#define asm_goto_output(x...) asm goto(x)
#endif
#endif /* __LINUX_COMPILER_TYPES_H */