* [PATCH -next] misc/pvpanic: Make some symbols static
@ 2021-03-31 12:17 YueHaibing
0 siblings, 0 replies; only message in thread
From: YueHaibing @ 2021-03-31 12:17 UTC (permalink / raw)
To: arnd, gregkh, mihai.carabas; +Cc: linux-kernel, YueHaibing
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>
---
drivers/misc/pvpanic/pvpanic.c | 4 ++--
1 file 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)
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-31 12:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 12:17 [PATCH -next] misc/pvpanic: Make some symbols static YueHaibing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).