mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00: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,
|
||||
};
|
||||
|
||||
bool i_am_nfsd()
|
||||
bool i_am_nfsd(void)
|
||||
{
|
||||
return kthread_func(current) == nfsd;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user