diff options
| author | 2020-07-29 16:14:21 +0200 | |
|---|---|---|
| committer | 2020-07-29 16:14:21 +0200 | |
| commit | f05d67179def83545d257aaff40b974e5915af38 (patch) | |
| tree | 2154a66bb1dc6ebebfe75c81395bfc3d75a0a7f8 /include/linux | |
| parent | Merge tag 'v5.8-rc6' into locking/core, to pick up fixes (diff) | |
| parent | locking/qspinlock: Do not include atomic.h from qspinlock_types.h (diff) | |
| download | linux-dev-f05d67179def83545d257aaff40b974e5915af38.tar.xz linux-dev-f05d67179def83545d257aaff40b974e5915af38.zip | |
Merge branch 'locking/header'
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h index d3021c879179..a147977602b5 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -167,6 +167,8 @@ typedef struct { int counter; } atomic_t; +#define ATOMIC_INIT(i) { (i) } + #ifdef CONFIG_64BIT typedef struct { s64 counter; |
