]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/notifier.h
[PATCH] lockdep: locking init debugging improvement
[karo-tx-linux.git] / include / linux / notifier.h
index 51dbab9710c7ea27ccdf9743076f9387d02a9d2a..7ff386a6ae87dd216e719dca52c39ce7aa12946f 100644 (file)
@@ -65,7 +65,7 @@ struct raw_notifier_head {
        } while (0)
 
 #define ATOMIC_NOTIFIER_INIT(name) {                           \
-               .lock = SPIN_LOCK_UNLOCKED,                     \
+               .lock = __SPIN_LOCK_UNLOCKED(name.lock),        \
                .head = NULL }
 #define BLOCKING_NOTIFIER_INIT(name) {                         \
                .rwsem = __RWSEM_INITIALIZER((name).rwsem),     \