diff options
author | Christoph Hellwig <hch@lst.de> | 2017-09-01 11:39:15 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-04 19:05:15 -0400 |
commit | 73e18f7c0b3e1432353cdd86672c27cace7e6a7e (patch) | |
tree | ff7c1888b6830e493493ace40166ae514914e646 /kernel/acct.c | |
parent | e13ec939e96b13e664bb6cee361cc976a0ee621a (diff) |
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) | |||
516 | if (file_start_write_trylock(file)) { | 516 | if (file_start_write_trylock(file)) { |
517 | /* it's been opened O_APPEND, so position is irrelevant */ | 517 | /* it's been opened O_APPEND, so position is irrelevant */ |
518 | loff_t pos = 0; | 518 | loff_t pos = 0; |
519 | __kernel_write(file, (char *)&ac, sizeof(acct_t), &pos); | 519 | __kernel_write(file, &ac, sizeof(acct_t), &pos); |
520 | file_end_write(file); | 520 | file_end_write(file); |
521 | } | 521 | } |
522 | out: | 522 | out: |