Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 642c6d94 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

sysctl: Make do_sysctl static



Now that all of the architectures use compat_sys_sysctl do_sysctl
can become static.

Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent 942405f3
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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)
{