mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
constify rw_verify_area()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
ee32465249
commit
68d70d03f8
2
fs/aio.c
2
fs/aio.c
@ -39,6 +39,8 @@
|
|||||||
#include <asm/kmap_types.h>
|
#include <asm/kmap_types.h>
|
||||||
#include <asm/uaccess.h>
|
#include <asm/uaccess.h>
|
||||||
|
|
||||||
|
#include "internal.h"
|
||||||
|
|
||||||
#define AIO_RING_MAGIC 0xa10a10a1
|
#define AIO_RING_MAGIC 0xa10a10a1
|
||||||
#define AIO_RING_COMPAT_FEATURES 1
|
#define AIO_RING_COMPAT_FEATURES 1
|
||||||
#define AIO_RING_INCOMPAT_FEATURES 0
|
#define AIO_RING_INCOMPAT_FEATURES 0
|
||||||
|
@ -131,6 +131,7 @@ extern struct dentry *__d_alloc(struct super_block *, const struct qstr *);
|
|||||||
* read_write.c
|
* read_write.c
|
||||||
*/
|
*/
|
||||||
extern ssize_t __kernel_write(struct file *, const char *, size_t, loff_t *);
|
extern ssize_t __kernel_write(struct file *, const char *, size_t, loff_t *);
|
||||||
|
extern int rw_verify_area(int, struct file *, const loff_t *, size_t);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* splice.c
|
* splice.c
|
||||||
|
@ -316,7 +316,7 @@ out_putf:
|
|||||||
* them to something that fits in "int" so that others
|
* them to something that fits in "int" so that others
|
||||||
* won't have to do range checks all the time.
|
* won't have to do range checks all the time.
|
||||||
*/
|
*/
|
||||||
int rw_verify_area(int read_write, struct file *file, loff_t *ppos, size_t count)
|
int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count)
|
||||||
{
|
{
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
loff_t pos;
|
loff_t pos;
|
||||||
|
@ -1898,7 +1898,6 @@ extern int current_umask(void);
|
|||||||
extern struct kobject *fs_kobj;
|
extern struct kobject *fs_kobj;
|
||||||
|
|
||||||
#define MAX_RW_COUNT (INT_MAX & PAGE_CACHE_MASK)
|
#define MAX_RW_COUNT (INT_MAX & PAGE_CACHE_MASK)
|
||||||
extern int rw_verify_area(int, struct file *, loff_t *, size_t);
|
|
||||||
|
|
||||||
#define FLOCK_VERIFY_READ 1
|
#define FLOCK_VERIFY_READ 1
|
||||||
#define FLOCK_VERIFY_WRITE 2
|
#define FLOCK_VERIFY_WRITE 2
|
||||||
|
Loading…
Reference in New Issue
Block a user