diff options
author | Christoph Hellwig <hch@lst.de> | 2017-09-01 17:39:15 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-05 01:05:15 +0200 |
commit | 73e18f7c0b3e1432353cdd86672c27cace7e6a7e (patch) | |
tree | ff7c1888b6830e493493ace40166ae514914e646 /kernel/acct.c | |
parent | fs: fix kernel_write prototype (diff) | |
download | linux-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/acct.c')
-rw-r--r-- | kernel/acct.c | 2 |
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: |