Commit 6cffa489 authored by Thomas Gleixner's avatar Thomas Gleixner

locks: provide __DEFINE_SPINLOCK needed by percpu_locked

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 89c94487
......@@ -104,7 +104,8 @@ typedef struct {
*/
#define SPIN_LOCK_UNLOCKED __SPIN_LOCK_UNLOCKED(old_style_spin_init)
#define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x)
#define __DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x)
#define DEFINE_SPINLOCK(x) __DEFINE_SPINLOCK(x)
#include <linux/rwlock_types.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment