From b1ba4ddde0cf67991d89f039365eaaeda61aa027 Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Mon, 2 Oct 2006 02:18:05 -0700 Subject: [PATCH] [PATCH] make kernel/sysctl.c:_proc_do_string() static This patch makes the needlessly global _proc_do_string() static. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- kernel/sysctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 8b5f4bb8ad..8f3f00d5ee 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1624,8 +1624,9 @@ static ssize_t proc_writesys(struct file * file, const char __user * buf, 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; -- 2.39.5