Re: [PATCH] sparse: quota annotation

From: Randy.Dunlap
Date: Mon Jun 21 2004 - 23:41:34 EST


On Tue, 22 Jun 2004 03:26:01 +0000 Linux Kernel Mailing List wrote:

| ChangeSet 1.1830, 2004/06/21 20:26:01-07:00, viro@xxxxxxxxxxxxxxxx
|
| [PATCH] sparse: quota annotation
|
| quota.c | 4 ++--
| 1 files changed, 2 insertions(+), 2 deletions(-)
|
|
| diff -Nru a/fs/quota.c b/fs/quota.c
| --- a/fs/quota.c 2004-06-21 21:09:59 -07:00
| +++ b/fs/quota.c 2004-06-21 21:09:59 -07:00
| @@ -150,7 +150,7 @@
| }
|
| /* Copy parameters and call proper function */
| -static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, caddr_t addr)
| +static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, void __user *addr)
| {
| int ret;
|
| @@ -264,7 +264,7 @@
| * calls. Maybe we need to add the process quotas etc. in the future,
| * but we probably should use rlimits for that.
| */
| -asmlinkage long sys_quotactl(unsigned int cmd, const char __user *special, qid_t id, caddr_t addr)
| +asmlinkage long sys_quotactl(unsigned int cmd, const char __user *special, qid_t id, void __user *addr)
| {
| uint cmds, type;
| struct super_block *sb = NULL;
| -

and in syscalls.h ... ?



sys_quotactl() prototype to match function

Signed-off-by: Randy Dunlap <rddunlap@xxxxxxxx>


diffstat:=
include/linux/syscalls.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naurp ./include/linux/syscalls.h~syscall_quotactl ./include/linux/syscalls.h
--- ./include/linux/syscalls.h~syscall_quotactl 2004-06-15 22:20:26.000000000 -0700
+++ ./include/linux/syscalls.h 2004-06-21 21:31:11.000000000 -0700
@@ -382,7 +382,7 @@ asmlinkage long sys_fchdir(unsigned int
asmlinkage long sys_rmdir(const char __user *pathname);
asmlinkage long sys_lookup_dcookie(u64 cookie64, char __user *buf, size_t len);
asmlinkage long sys_quotactl(unsigned int cmd, const char __user *special,
- qid_t id, caddr_t addr);
+ qid_t id, void __user *addr);
asmlinkage long sys_getdents(unsigned int fd,
struct linux_dirent __user *dirent,
unsigned int count);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/