Skip to contentSkip to conversation

nfsd: Fix old-style function definition

PATCH In review Ma Feng 2 participants 2 messages May 11, 2020

Subsystems (2)
lore
Share & tools
lore

Ma Feng

author
#0 lore raw

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()

      ^~~~~~~~~
---
 fs/nfsd/nfssvc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/nfssvc.c +1 -1
index 4f588c0..b603dfc 100644
@@ -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

#1 lore raw
Quoted 4 lines · Ma Feng

Fix warning:

fs/nfsd/nfssvc.c:604:6: warning: old-style function definition [-Wold-style-definition]
bool i_am_nfsd()

Applying for 5.8, thanks.--b.

Quoted 23 lines
      ^~~~~~~~~
---
 fs/nfsd/nfssvc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/nfssvc.c +1 -2
index 4f588c0..b603dfc 100644
@@ -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