]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sparse fix sysctl
authorAndries E. Brouwer <andries.brouwer@cwi.nl>
Tue, 9 Sep 2003 01:50:02 +0000 (18:50 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 9 Sep 2003 01:50:02 +0000 (18:50 -0700)
include/linux/writeback.h
kernel/sysctl.c

index cb7d5d6a75b06fffd9067404e504330ffcb77b35..373e58fee2d409cfe33b248d903f485d2b730718 100644 (file)
@@ -80,8 +80,8 @@ extern int dirty_expire_centisecs;
 
 struct ctl_table;
 struct file;
-int dirty_writeback_centisecs_handler(struct ctl_table *, int, struct file *, 
-                                         void *, size_t *);
+int dirty_writeback_centisecs_handler(struct ctl_table *, int, struct file *,
+                                     void __user *, size_t *);
 
 void page_writeback_init(void);
 void balance_dirty_pages(struct address_space *mapping);
index 3180fa00d248a1c1ee81e4068adc68b5d15403b9..7648c165a86d0bd912057df5e2659721524a7e20 100644 (file)
@@ -643,7 +643,7 @@ static ctl_table vm_table[] = {
                .data           = &dirty_writeback_centisecs,
                .maxlen         = sizeof(dirty_writeback_centisecs),
                .mode           = 0644,
-               .proc_handler   = dirty_writeback_centisecs_handler,
+               .proc_handler   = &dirty_writeback_centisecs_handler,
        },
        {
                .ctl_name       = VM_DIRTY_EXPIRE_CS,