nfsd: Fix old-style function definition
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Signed-off-by Ma Feng <[email protected]>
--- fs/nfsd/nfssvc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/nfssvc.c +1 -1
@@ -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; }
--
2.6.2
Quoted 4 lines · Ma Feng
Fix warning:
fs/nfsd/nfssvc.c:604:6: warning: old-style function definition [-Wold-style-definition]
booli_am_nfsd()
Applying for 5.8, thanks.--b.
Quoted 23 lines
^~~~~~~~~Reported-by Hulk Robot <[email protected]>Signed-off-by Ma Feng <[email protected]>--- fs/nfsd/nfssvc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/nfsd/nfssvc.c +1
-2@@ -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; } --2.6.2