Fix incompatible pointer type warning
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 Aug 2011 21:49:49 +0000 (14:49 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 Aug 2011 22:16:30 +0000 (15:16 -0700)
This warning was accidentally introduced by commit
f3ab88d6461dec46dea240763843f66300facfab which updated the
.readpages() implementation.  The fix is to simply cast
the helper function to the appropriate type when passed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/zfs/zpl_file.c

index 53921d1..af46afd 100644 (file)
@@ -305,7 +305,8 @@ static int
 zpl_readpages(struct file *filp, struct address_space *mapping,
        struct list_head *pages, unsigned nr_pages)
 {
-       return (read_cache_pages(mapping, pages, zpl_readpage, filp));
+       return (read_cache_pages(mapping, pages,
+           (filler_t *)zpl_readpage, filp));
 }
 
 int