[PATCH -next] uio: make symbol 'uio_class_registered' static

From: Wei Yongjun
Date: Tue Sep 25 2018 - 10:56:14 EST


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@xxxxxxxxxx>
---
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 0ffb324..d4cc07d 100644
--- a/drivers/uio/uio.c
+++ b/drivers/uio/uio.c
@@ -274,7 +274,7 @@ static ssize_t event_show(struct device *dev,
.dev_groups = uio_groups,
};

-bool uio_class_registered;
+static bool uio_class_registered;

/*
* device functions