From: David Kershner Date: Mon, 19 Sep 2016 21:09:37 +0000 (-0400) Subject: staging: unisys: visorbus: move parahotplug_request_list and related lock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=51319662d6ac5729a1950579d70808d94e4fa8e6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: unisys: visorbus: move parahotplug_request_list and related lock parahotplug_request_list and parahotplug_request_list_lock should be defined closer to where we are actually using them. Reported-by: Greg Kroah-Hartman Signed-off-by: David Kershner Reviewed-by: Tim Sell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index 5603bb65fb67..39e8acaf9bcb 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -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