diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-19 07:26:04 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-29 04:57:34 -0400 |
commit | 68d70d03f8f5bd10a0e7337210b13f536fd4aeb9 (patch) | |
tree | 2d55d3c5286748ce3cf3828f877cdf703c9b1249 /fs | |
parent | ee32465249bee53714c0ca7be38da83008f9f8a6 (diff) |
constify rw_verify_area()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/aio.c | 2 | ||||
-rw-r--r-- | fs/internal.h | 1 | ||||
-rw-r--r-- | fs/read_write.c | 2 |
3 files changed, 4 insertions, 1 deletions
@@ -39,6 +39,8 @@ | |||
39 | #include <asm/kmap_types.h> | 39 | #include <asm/kmap_types.h> |
40 | #include <asm/uaccess.h> | 40 | #include <asm/uaccess.h> |
41 | 41 | ||
42 | #include "internal.h" | ||
43 | |||
42 | #define AIO_RING_MAGIC 0xa10a10a1 | 44 | #define AIO_RING_MAGIC 0xa10a10a1 |
43 | #define AIO_RING_COMPAT_FEATURES 1 | 45 | #define AIO_RING_COMPAT_FEATURES 1 |
44 | #define AIO_RING_INCOMPAT_FEATURES 0 | 46 | #define AIO_RING_INCOMPAT_FEATURES 0 |
diff --git a/fs/internal.h b/fs/internal.h index f6ad34362823..7c5f01cf619d 100644 --- a/fs/internal.h +++ b/fs/internal.h | |||
@@ -131,6 +131,7 @@ extern struct dentry *__d_alloc(struct super_block *, const struct qstr *); | |||
131 | * read_write.c | 131 | * read_write.c |
132 | */ | 132 | */ |
133 | extern ssize_t __kernel_write(struct file *, const char *, size_t, loff_t *); | 133 | extern ssize_t __kernel_write(struct file *, const char *, size_t, loff_t *); |
134 | extern int rw_verify_area(int, struct file *, const loff_t *, size_t); | ||
134 | 135 | ||
135 | /* | 136 | /* |
136 | * splice.c | 137 | * splice.c |
diff --git a/fs/read_write.c b/fs/read_write.c index 782dfc3acebc..fd72b592aa1b 100644 --- a/fs/read_write.c +++ b/fs/read_write.c | |||
@@ -316,7 +316,7 @@ out_putf: | |||
316 | * them to something that fits in "int" so that others | 316 | * them to something that fits in "int" so that others |
317 | * won't have to do range checks all the time. | 317 | * won't have to do range checks all the time. |
318 | */ | 318 | */ |
319 | int rw_verify_area(int read_write, struct file *file, loff_t *ppos, size_t count) | 319 | int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count) |
320 | { | 320 | { |
321 | struct inode *inode; | 321 | struct inode *inode; |
322 | loff_t pos; | 322 | loff_t pos; |