fs: fix kernel_read prototype
authorChristoph Hellwig <hch@lst.de>
Fri, 1 Sep 2017 15:39:13 +0000 (17:39 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Sep 2017 23:05:15 +0000 (19:05 -0400)
commitbdd1d2d3d251c65b74ac4493e08db18971c09240
tree71df247eeb367203c59a26eed8a384398c2d8131
parentc41fbad015dabb0a40ecca50c3ff5658eb6471ff
fs: fix kernel_read prototype

Use proper ssize_t and size_t types for the return value and count
argument, move the offset last and make it an in/out argument like
all other read/write helpers, and make the buf argument a void pointer
to get rid of lots of casts in the callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
17 files changed:
arch/mips/kernel/elf.c
arch/x86/ia32/ia32_aout.c
drivers/media/pci/cx25821/cx25821-audio-upstream.c
drivers/mtd/nand/nandsim.c
fs/binfmt_aout.c
fs/binfmt_elf.c
fs/binfmt_elf_fdpic.c
fs/binfmt_flat.c
fs/binfmt_misc.c
fs/coda/dir.c
fs/ecryptfs/read_write.c
fs/exec.c
fs/read_write.c
include/linux/fs.h
kernel/sysctl_binary.c
net/9p/trans_fd.c
security/keys/big_key.c