summaryrefslogtreecommitdiffstats
path: root/fs/nfs/read.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-04 19:54:24 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-04 20:59:51 +0200
commit1385b8117325e79f74c1e7d1cbf45c789deb85c5 (patch)
treeb1afbd0a9ecd49d29621d1c931d685d705e285d7 /fs/nfs/read.c
parentNFS: Fix O_DIRECT compile warnings (diff)
downloadlinux-1385b8117325e79f74c1e7d1cbf45c789deb85c5.tar.xz
linux-1385b8117325e79f74c1e7d1cbf45c789deb85c5.zip
NFS: Fix sparse warnings
Fix the following sparse warnings: fs/nfs/direct.c:221:6: warning: symbol 'nfs_direct_readpage_release' was not declared. Should it be static? fs/nfs/read.c:38:43: warning: non-ANSI function declaration of function 'nfs_readhdr_alloc' fs/nfs/objlayout/objio_osd.c:214:5: warning: symbol '__alloc_objio_seg' was not declared. Should it be static? Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: Fred Isaman <iisaman@netapp.com> Cc: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'fs/nfs/read.c')
-rw-r--r--fs/nfs/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/read.c b/fs/nfs/read.c
index 37c9eb2930b0..f23cf255bd39 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;