diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-09-25 15:05:20 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-02 15:38:14 -0700 |
commit | 6011002c1584d29c317e0895b9667d57f254537a (patch) | |
tree | bfa06c7a8a19173e210f28cf6b8571f5a31fa1b5 | |
parent | 25355252607ca288f329ee033f387764883393f6 (diff) | |
download | linux-6011002c1584d29c317e0895b9667d57f254537a.tar.gz linux-6011002c1584d29c317e0895b9667d57f254537a.tar.bz2 linux-6011002c1584d29c317e0895b9667d57f254537a.zip |
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 <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/uio/uio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |