]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - include/asm-generic/qspinlock_types.h
locking/qspinlock: Fix build for anonymous union in older GCC compilers
[thirdparty/kernel/stable.git] / include / asm-generic / qspinlock_types.h
index 0763f065b975a543fb0e887d4af8d63bf7354f05..d10f1e7d6ba8c37140ae9332b59399baae4ffdf1 100644 (file)
@@ -63,7 +63,7 @@ typedef struct qspinlock {
 /*
  * Initializier
  */
-#define        __ARCH_SPIN_LOCK_UNLOCKED       { .val = ATOMIC_INIT(0) }
+#define        __ARCH_SPIN_LOCK_UNLOCKED       { { .val = ATOMIC_INIT(0) } }
 
 /*
  * Bitfields in the atomic value: