backports: fix wq_name_list initialization
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 23 Jul 2013 23:47:41 +0000 (16:47 -0700)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 23 Jul 2013 23:47:41 +0000 (16:47 -0700)
As noted by Johannes this wasn't being initialized
without this.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
backport/compat/compat-3.3.c

index d86b40e2510a8454eb8c687b48ef26460797e94f..75bd5e530e1e41b0a9631e21e6e81da1bebdd88c 100644 (file)
@@ -174,7 +174,7 @@ out:
 EXPORT_SYMBOL_GPL(__pskb_copy);
 
 static DEFINE_SPINLOCK(wq_name_lock);
-static struct list_head wq_name_list;
+static LIST_HEAD(wq_name_list);
 
 struct wq_name {
        struct list_head list;
@@ -204,7 +204,7 @@ backport_alloc_workqueue(const char *fmt, unsigned int flags,
                                    0,
 #endif
                                    key, lock_name);
-#else                          
+#else
        wq = __alloc_workqueue_key(n->name, flags, max_active, key, lock_name);
 #endif
        if (!wq) {