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: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ma Feng <mafeng.ma@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
Ma Feng 2020-05-11 20:07:08 +08:00 committed by J. Bruce Fields
parent 28df3d1539
commit 44fb26c6b4
1 changed files with 1 additions and 1 deletions

View File

@ -601,7 +601,7 @@ static const struct svc_serv_ops nfsd_thread_sv_ops = {
.svo_module = THIS_MODULE,
};
bool i_am_nfsd()
bool i_am_nfsd(void)
{
return kthread_func(current) == nfsd;
}