projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2535525
)
uio: make symbol 'uio_class_registered' static
author
Wei Yongjun
<weiyongjun1@huawei.com>
Tue, 25 Sep 2018 15:05:20 +0000
(15:05 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 2 Oct 2018 22:38:14 +0000
(15:38 -0700)
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>
drivers/uio/uio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/uio/uio.c
b/drivers/uio/uio.c
index e601bd3fbae1fa925c047b21f789716e46c86a32..85644669fbe7b013b59b24adff5fd466230a102b 100644
(file)
--- 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