summaryrefslogtreecommitdiff
path: root/fs/nfsd/nfssvc.c
diff options
context:
space:
mode:
authorMa Feng <mafeng.ma@huawei.com>2020-05-11 20:07:08 +0800
committerJ. Bruce Fields <bfields@redhat.com>2020-05-11 09:16:14 -0400
commit44fb26c6b4c5ad63f733df7936deffeae2950855 (patch)
tree23035c48cfed6e1bc526425c00e78a1fa309368d /fs/nfsd/nfssvc.c
parent28df3d1539de5090f7916f6fff03891b67f366f4 (diff)
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>
Diffstat (limited to 'fs/nfsd/nfssvc.c')
-rw-r--r--fs/nfsd/nfssvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c
index 4f588c0eaaf4..b603dfcdd361 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -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;
}