summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-08-19 14:49:49 -0700
committerBrian Behlendorf <[email protected]>2011-08-19 15:16:30 -0700
commit95d9fd028b9a27294a1b807915de17877563bd6d (patch)
treea8d03a14ec01119de58d3416fa8d864d3e863cf9 /module
parentb740d602bdeca757180a7098be28701a7cde7fbd (diff)
Fix incompatible pointer type warning
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 <[email protected]>
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zpl_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/zpl_file.c b/module/zfs/zpl_file.c
index 53921d1a7..af46afddf 100644
--- a/module/zfs/zpl_file.c
+++ b/module/zfs/zpl_file.c
@@ -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