提交 44fb26c6 编写于 作者: M Ma Feng 提交者: J. Bruce Fields

nfsd: Fix old-style function definition

Fix warning:

fs/nfsd/nfssvc.c:604:6: warning: old-style function definition [-Wold-style-definition]
 bool i_am_nfsd()
      ^~~~~~~~~
Reported-by: NHulk Robot <hulkci@huawei.com>
Signed-off-by: NMa Feng <mafeng.ma@huawei.com>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 28df3d15
...@@ -601,7 +601,7 @@ static const struct svc_serv_ops nfsd_thread_sv_ops = { ...@@ -601,7 +601,7 @@ static const struct svc_serv_ops nfsd_thread_sv_ops = {
.svo_module = THIS_MODULE, .svo_module = THIS_MODULE,
}; };
bool i_am_nfsd() bool i_am_nfsd(void)
{ {
return kthread_func(current) == nfsd; return kthread_func(current) == nfsd;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册