lkml.org 
[lkml]   [2012]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -next] nfs: fix stub return type warnings
From: Randy Dunlap <rdunlap@xenotime.net>

Fix numerous repeated warnings by making the stub function
void instead of non-void:

fs/nfs/nfs4_fs.h: In function 'nfs4_unregister_sysctl':
fs/nfs/nfs4_fs.h:385:1: warning: no return statement in function returning non-void

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
---
fs/nfs/nfs4_fs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20120727.orig/fs/nfs/nfs4_fs.h
+++ linux-next-20120727/fs/nfs/nfs4_fs.h
@@ -380,7 +380,7 @@ static inline int nfs4_register_sysctl(v
return 0;
}

-static inline int nfs4_unregister_sysctl(void)
+static inline void nfs4_unregister_sysctl(void)
{
}
#endif

\
 
 \ /
  Last update: 2012-07-27 21:41    [from the cache]
©2003-2011 Jasper Spaans