diff options
author | Ma Feng <mafeng.ma@huawei.com> | 2020-05-11 15:07:08 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-05-11 16:16:14 +0300 |
commit | 44fb26c6b4c5ad63f733df7936deffeae2950855 (patch) | |
tree | 23035c48cfed6e1bc526425c00e78a1fa309368d /fs/nfsd/nfssvc.c | |
parent | 28df3d1539de5090f7916f6fff03891b67f366f4 (diff) | |
download | linux-44fb26c6b4c5ad63f733df7936deffeae2950855.tar.xz |
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.c | 2 |
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; } |