]> git.hungrycats.org Git - linux/commitdiff
Make the new simple_read_from_buffer() take a const src
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 5 Aug 2004 16:11:00 +0000 (09:11 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 5 Aug 2004 16:11:00 +0000 (09:11 -0700)
buffer without complaints.

fs/libfs.c
include/linux/fs.h

index 321ff8d38398d85af5fed2681f8fce78029c6726..205cfdbe2bc11eb8b58898d3edf96bf2eb752404 100644 (file)
@@ -441,7 +441,7 @@ void simple_release_fs(struct vfsmount **mount, int *count)
 }
 
 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos,
-                               void *from, size_t available)
+                               const void *from, size_t available)
 {
        loff_t pos = *ppos;
        if (pos < 0)
index f8677c13b4a8f129b468118983ed91157e86be3c..22dd6acdf9f1f210c48e6fa126ebe2a18a9d77c2 100644 (file)
@@ -1527,7 +1527,7 @@ extern int simple_fill_super(struct super_block *, int, struct tree_descr *);
 extern int simple_pin_fs(char *name, struct vfsmount **mount, int *count);
 extern void simple_release_fs(struct vfsmount **mount, int *count);
 
-extern ssize_t simple_read_from_buffer(void __user *, size_t, loff_t *, void *, size_t);
+extern ssize_t simple_read_from_buffer(void __user *, size_t, loff_t *, const void *, size_t);
 
 extern int inode_change_ok(struct inode *, struct iattr *);
 extern int __must_check inode_setattr(struct inode *, struct iattr *);