From 6011002c1584d29c317e0895b9667d57f254537a Mon Sep 17 00:00:00 2001
From: Wei Yongjun <weiyongjun1@huawei.com>
Date: Tue, 25 Sep 2018 15:05:20 +0000
Subject: [PATCH] uio: make symbol 'uio_class_registered' static
Git-commit: 6011002c1584d29c317e0895b9667d57f254537a
Patch-mainline: v4.20-rc1
References: bsc#1051510
Fixes the following sparse warning:
drivers/uio/uio.c:277:6: warning:
symbol 'uio_class_registered' was not declared. Should it be static?
Fixes: ae61cf5b9913 ("uio: ensure class is registered before devices")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Takashi Iwai <tiwai@suse.de>
---
drivers/uio/uio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c
index e601bd3fbae1..85644669fbe7 100644
--- a/drivers/uio/uio.c
+++ b/drivers/uio/uio.c
@@ -274,7 +274,7 @@ static struct class uio_class = {
.dev_groups = uio_groups,
};
-bool uio_class_registered;
+static bool uio_class_registered;
/*
* device functions
--
2.19.1