Skip to content

Commit

Permalink
sysctl: Make do_sysctl static
Browse files Browse the repository at this point in the history
Now that all of the architectures use compat_sys_sysctl do_sysctl
can become static.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
  • Loading branch information
Eric W. Biederman committed Nov 6, 2009
1 parent 942405f commit 642c6d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions include/linux/sysctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -996,10 +996,6 @@ extern int proc_doulongvec_minmax(struct ctl_table *, int,
extern int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int,
void __user *, size_t *, loff_t *);

extern int do_sysctl (int __user *name, int nlen,
void __user *oldval, size_t __user *oldlenp,
void __user *newval, size_t newlen);

extern ctl_handler sysctl_data;
extern ctl_handler sysctl_string;
extern ctl_handler sysctl_intvec;
Expand Down
2 changes: 1 addition & 1 deletion kernel/sysctl_binary.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static void deprecated_sysctl_warning(const int *name, int nlen)
return;
}

int do_sysctl(int __user *args_name, int nlen,
static int do_sysctl(int __user *args_name, int nlen,
void __user *oldval, size_t __user *oldlenp,
void __user *newval, size_t newlen)
{
Expand Down

0 comments on commit 642c6d9

Please sign in to comment.