summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-09-01 17:39:15 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2017-09-05 01:05:15 +0200
commit73e18f7c0b3e1432353cdd86672c27cace7e6a7e (patch)
treeff7c1888b6830e493493ace40166ae514914e646 /kernel
parentfs: fix kernel_write prototype (diff)
downloadlinux-73e18f7c0b3e1432353cdd86672c27cace7e6a7e.tar.xz
linux-73e18f7c0b3e1432353cdd86672c27cace7e6a7e.zip
fs: make the buf argument to __kernel_write a void pointer
This matches kernel_read and kernel_write and avoids any need for casts in the callers. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/acct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/acct.c b/kernel/acct.c
index 5b1284370367..5e72af29ab73 100644
--- a/kernel/acct.c
+++ b/kernel/acct.c
@@ -516,7 +516,7 @@ static void do_acct_process(struct bsd_acct_struct *acct)
if (file_start_write_trylock(file)) {
/* it's been opened O_APPEND, so position is irrelevant */
loff_t pos = 0;
- __kernel_write(file, (char *)&ac, sizeof(acct_t), &pos);
+ __kernel_write(file, &ac, sizeof(acct_t), &pos);
file_end_write(file);
}
out: