Skip to content

Commit

Permalink
[PATCH] make kernel/sysctl.c:_proc_do_string() static
Browse files Browse the repository at this point in the history
This patch makes the needlessly global _proc_do_string() static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
AdrianBunk authored and Linus Torvalds committed Oct 2, 2006
1 parent f5dd3d6 commit b1ba4dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b1ba4dd

Please sign in to comment.