]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
uio: make symbol 'uio_class_registered' static
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 25 Sep 2018 15:05:20 +0000 (15:05 +0000)
committerGreg 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

index e601bd3fbae1fa925c047b21f789716e46c86a32..85644669fbe7b013b59b24adff5fd466230a102b 100644 (file)
@@ -274,7 +274,7 @@ static struct class uio_class = {
        .dev_groups = uio_groups,
 };
 
-bool uio_class_registered;
+static bool uio_class_registered;
 
 /*
  * device functions