summaryrefslogtreecommitdiffstats
path: root/drivers/misc/pvpanic
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2021-03-31 20:17:06 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-02 16:16:49 +0200
commit391e2415e9668a47d423c6c935a25340f02b0685 (patch)
tree5efcb39f783ff535d70cff5d7bc3f3a026e20482 /drivers/misc/pvpanic
parent642fa28bb5ee2cf72e7d86b2fa9d06f2b04c9fb3 (diff)
downloadlinux-391e2415e9668a47d423c6c935a25340f02b0685.tar.bz2
misc/pvpanic: Make some symbols static
Fix sparse warnings: drivers/misc/pvpanic/pvpanic.c:28:18: warning: symbol 'pvpanic_list' was not declared. Should it be static? drivers/misc/pvpanic/pvpanic.c:29:12: warning: symbol 'pvpanic_lock' was not declared. Should it be static? Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20210331121706.15268-1-yuehaibing@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/pvpanic')
-rw-r--r--drivers/misc/pvpanic/pvpanic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/pvpanic/pvpanic.c b/drivers/misc/pvpanic/pvpanic.c
index 804099c2d7fa..65f70a4da8c0 100644
--- a/drivers/misc/pvpanic/pvpanic.c
+++ b/drivers/misc/pvpanic/pvpanic.c
@@ -25,8 +25,8 @@ MODULE_AUTHOR("Mihai Carabas <mihai.carabas@oracle.com>");
MODULE_DESCRIPTION("pvpanic device driver ");
MODULE_LICENSE("GPL");
-struct list_head pvpanic_list;
-spinlock_t pvpanic_lock;
+static struct list_head pvpanic_list;
+static spinlock_t pvpanic_lock;
static void
pvpanic_send_event(unsigned int event)