2018-09-25 14:57:00

by Wei Yongjun

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

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 <[email protected]>
---
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