All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for 4.4, 4.9, 4.14, 4.19] uio: make symbol 'uio_class_registered' static
@ 2019-12-23 23:52 Nobuhiro Iwamatsu
  2019-12-24  0:09 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Nobuhiro Iwamatsu @ 2019-12-23 23:52 UTC (permalink / raw)
  To: stable

From: Wei Yongjun <weiyongjun1@huawei.com>

commit 6011002c1584d29c317e0895b9667d57f254537a upstream.

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>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
---
 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 2762148c169d..6c8114f77cfa 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.23.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-24  0:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-23 23:52 [PATCH for 4.4, 4.9, 4.14, 4.19] uio: make symbol 'uio_class_registered' static Nobuhiro Iwamatsu
2019-12-24  0:09 ` Greg KH
2019-12-24  0:16   ` Nobuhiro Iwamatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.