diff options
author | Christoph Hellwig <hch@lst.de> | 2017-09-01 17:39:14 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-04 19:05:15 -0400 |
commit | e13ec939e96b13e664bb6cee361cc976a0ee621a (patch) | |
tree | 9537ad39e7cc842c1f6d756aba43b1f753be9eaa /drivers/mtd | |
parent | bdd1d2d3d251c65b74ac4493e08db18971c09240 (diff) | |
download | linux-e13ec939e96b13e664bb6cee361cc976a0ee621a.tar.gz linux-e13ec939e96b13e664bb6cee361cc976a0ee621a.tar.bz2 linux-e13ec939e96b13e664bb6cee361cc976a0ee621a.zip |
fs: fix kernel_write prototype
Make the position an in/out argument like all the other read/write
helpers and and make the buf argument a void pointer.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/nandsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c index a8089656879a..3300a77667fb 100644 --- a/drivers/mtd/nand/nandsim.c +++ b/drivers/mtd/nand/nandsim.c @@ -1395,7 +1395,7 @@ static ssize_t write_file(struct nandsim *ns, struct file *file, void *buf, size if (err) return err; noreclaim_flag = memalloc_noreclaim_save(); - tx = kernel_write(file, buf, count, pos); + tx = kernel_write(file, buf, count, &pos); memalloc_noreclaim_restore(noreclaim_flag); put_pages(ns); return tx; |