aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2020-07-29 16:14:21 +0200
committerPeter Zijlstra <peterz@infradead.org>2020-07-29 16:14:21 +0200
commitf05d67179def83545d257aaff40b974e5915af38 (patch)
tree2154a66bb1dc6ebebfe75c81395bfc3d75a0a7f8 /include/linux
parentMerge tag 'v5.8-rc6' into locking/core, to pick up fixes (diff)
parentlocking/qspinlock: Do not include atomic.h from qspinlock_types.h (diff)
downloadlinux-dev-f05d67179def83545d257aaff40b974e5915af38.tar.xz
linux-dev-f05d67179def83545d257aaff40b974e5915af38.zip
Merge branch 'locking/header'
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/types.h2
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;