[-mm patch] make kernel/sysctl.c:_proc_do_string() static
- From: Adrian Bunk <bunk@xxxxxxxxx>
- Date: Fri, 23 Jun 2006 12:55:49 +0200
This patch makes the needlessly global _proc_do_string() static.
Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>
--- linux-2.6.17-mm1-full/kernel/sysctl.c.old 2006-06-22 20:50:08.000000000 +0200
+++ linux-2.6.17-mm1-full/kernel/sysctl.c 2006-06-22 20:50:39.000000000 +0200
@@ -1706,8 +1706,9 @@
return do_rw_proc(1, file, (char __user *) buf, count, ppos);
}
-int _proc_do_string(void* data, int maxlen, int write, struct file *filp,
- void __user *buffer, size_t *lenp, loff_t *ppos)
+static int _proc_do_string(void* data, int maxlen, int write,
+ struct file *filp, void __user *buffer,
+ size_t *lenp, loff_t *ppos)
{
size_t len;
char __user *p;
-
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/
- References:
- 2.6.17-mm1
- From: Andrew Morton
- 2.6.17-mm1
- Prev by Date: [2.6 patch] drivers/scsi/advansys.c: cleanups
- Next by Date: [2.6 patch] remove kernel/power/pm.c:pm_unregister_all()
- Previous by thread: [-mm patch] make ipc/sem.c:exit_sem() static
- Next by thread: [-mm patch] fs/ufs/inode.c: make 2 functions static
- Index(es):