linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] NFS: silence Sparse warning about a non-ANSI declaration
@ 2012-05-04 17:40 Dan Carpenter
  2012-05-04 18:14 ` Myklebust, Trond
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2012-05-04 17:40 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-nfs, kernel-janitors

Sparse complains because without the "void", it means that the function
takes a variable number of arguments.

fs/nfs/read.c:38:43: warning: non-ANSI function declaration of function
	'nfs_readhdr_alloc'

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/fs/nfs/read.c b/fs/nfs/read.c
index 37c9eb2..f23cf25 100644
--- a/fs/nfs/read.c
+++ b/fs/nfs/read.c
@@ -35,7 +35,7 @@ static const struct nfs_pgio_completion_ops nfs_async_read_completion_ops;
 
 static struct kmem_cache *nfs_rdata_cachep;
 
-struct nfs_read_header *nfs_readhdr_alloc()
+struct nfs_read_header *nfs_readhdr_alloc(void)
 {
 	struct nfs_read_header *rhdr;
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-04 18:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-04 17:40 [patch] NFS: silence Sparse warning about a non-ANSI declaration Dan Carpenter
2012-05-04 18:14 ` Myklebust, Trond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).