projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28df3d1
)
nfsd: Fix old-style function definition
author
Ma Feng
<mafeng.ma@huawei.com>
Mon, 11 May 2020 12:07:08 +0000
(20:07 +0800)
committer
J. Bruce Fields
<bfields@redhat.com>
Mon, 11 May 2020 13:16:14 +0000
(09:16 -0400)
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>
fs/nfsd/nfssvc.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/nfssvc.c
b/fs/nfsd/nfssvc.c
index 4f588c0eaaf44ef70e4b5876b861d3d4c2f4e291..b603dfcdd3615fb6a37e2021e0b07ef14e17f256 100644
(file)
--- 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;
}