aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-08-11 06:26:22 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-13 19:53:13 -0400
commitc7887325230aec47d47a32562a6e26014a0fafca (patch)
tree10535943dace59ddb01d3440aa582bc4640e8016 /include/linux/fs.h
parentb84ae4a1401a731ef5fee987c0cb08743838dda7 (diff)
Mark arguments to certain syscalls as being const
Mark arguments to certain system calls as being const where they should be but aren't. The list includes: (*) The filename arguments of various stat syscalls, execve(), various utimes syscalls and some mount syscalls. (*) The filename arguments of some syscall helpers relating to the above. (*) The buffer argument of various write syscalls. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 7a0625e26a39..5f0ca2fbb2a0 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2320,10 +2320,10 @@ void inode_set_bytes(struct inode *inode, loff_t bytes);
2320 2320
2321extern int vfs_readdir(struct file *, filldir_t, void *); 2321extern int vfs_readdir(struct file *, filldir_t, void *);
2322 2322
2323extern int vfs_stat(char __user *, struct kstat *); 2323extern int vfs_stat(const char __user *, struct kstat *);
2324extern int vfs_lstat(char __user *, struct kstat *); 2324extern int vfs_lstat(const char __user *, struct kstat *);
2325extern int vfs_fstat(unsigned int, struct kstat *); 2325extern int vfs_fstat(unsigned int, struct kstat *);
2326extern int vfs_fstatat(int , char __user *, struct kstat *, int); 2326extern int vfs_fstatat(int , const char __user *, struct kstat *, int);
2327 2327
2328extern int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, 2328extern int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd,
2329 unsigned long arg); 2329 unsigned long arg);