staging: unisys: visorbus: move parahotplug_request_list and related lock
authorDavid Kershner <david.kershner@unisys.com>
Mon, 19 Sep 2016 21:09:37 +0000 (17:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:28:17 +0000 (13:28 +0200)
parahotplug_request_list and parahotplug_request_list_lock should be
defined closer to where we are actually using them.

Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchipset.c

index 5603bb65fb672bf3da363f063dc7d14b0fbc4a34..39e8acaf9bcb49f4e7c6f2734f20366a05b34a7c 100644 (file)
@@ -177,9 +177,6 @@ struct parahotplug_request {
        struct controlvm_message msg;
 };
 
-static LIST_HEAD(parahotplug_request_list);
-static DEFINE_SPINLOCK(parahotplug_request_list_lock); /* lock for above */
-
 /* info for /dev/visorchipset */
 static dev_t major_dev = -1; /*< indicates major num for device */
 
@@ -1208,6 +1205,9 @@ parahotplug_request_destroy(struct parahotplug_request *req)
        kfree(req);
 }
 
+static LIST_HEAD(parahotplug_request_list);
+static DEFINE_SPINLOCK(parahotplug_request_list_lock); /* lock for above */
+
 /**
  * parahotplug_request_complete() - mark request as complete
  * @id:     the id of the request