mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
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:
parent
28df3d1539
commit
44fb26c6b4
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user