summaryrefslogtreecommitdiff
path: root/drivers/uio
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-09-25 15:05:20 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-02 15:38:14 -0700
commit6011002c1584d29c317e0895b9667d57f254537a (patch)
treebfa06c7a8a19173e210f28cf6b8571f5a31fa1b5 /drivers/uio
parent25355252607ca288f329ee033f387764883393f6 (diff)
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>
Diffstat (limited to 'drivers/uio')
-rw-r--r--drivers/uio/uio.c2
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