提交 ab0be4c0 编写于 作者: W Wei Yongjun 提交者: Xie XiuQi

uio: make symbol 'uio_class_registered' static

mainline inclusion
from mainline-4.20-rc1
commit 6011002c
category: bugfix
bugzilla: 6471
CVE: NA

-------------------------------------------------

Fixes the following sparse warning:

drivers/uio/uio.c:277:6: warning:
 symbol 'uio_class_registered' was not declared. Should it be static?

Fixes: ae61cf5b ("uio: ensure class is registered before devices")
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NZhang Dianfang <zhangdianfang@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 3835c3f2
......@@ -274,7 +274,7 @@ static struct class uio_class = {
.dev_groups = uio_groups,
};
bool uio_class_registered;
static bool uio_class_registered;
/*
* device functions
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册