[PATCH] sysctl: remove unused "context" param
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Andi Kleen <ak@suse.de> Cc: "David S. Miller" <davem@davemloft.net> Cc: David Howells <dhowells@redhat.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
98d7340c36
commit
1f29bcd739
@@ -918,8 +918,7 @@ typedef struct ctl_table ctl_table;
|
||||
|
||||
typedef int ctl_handler (ctl_table *table, int __user *name, int nlen,
|
||||
void __user *oldval, size_t __user *oldlenp,
|
||||
void __user *newval, size_t newlen,
|
||||
void **context);
|
||||
void __user *newval, size_t newlen);
|
||||
|
||||
typedef int proc_handler (ctl_table *ctl, int write, struct file * filp,
|
||||
void __user *buffer, size_t *lenp, loff_t *ppos);
|
||||
@@ -950,7 +949,7 @@ extern int do_sysctl (int __user *name, int nlen,
|
||||
extern int do_sysctl_strategy (ctl_table *table,
|
||||
int __user *name, int nlen,
|
||||
void __user *oldval, size_t __user *oldlenp,
|
||||
void __user *newval, size_t newlen, void ** context);
|
||||
void __user *newval, size_t newlen);
|
||||
|
||||
extern ctl_handler sysctl_string;
|
||||
extern ctl_handler sysctl_intvec;
|
||||
|
||||
+1
-2
@@ -376,8 +376,7 @@ int ipv4_doint_and_flush(ctl_table *ctl, int write,
|
||||
size_t *lenp, loff_t *ppos);
|
||||
int ipv4_doint_and_flush_strategy(ctl_table *table, int __user *name, int nlen,
|
||||
void __user *oldval, size_t __user *oldlenp,
|
||||
void __user *newval, size_t newlen,
|
||||
void **context);
|
||||
void __user *newval, size_t newlen);
|
||||
#ifdef CONFIG_PROC_FS
|
||||
extern int ip_misc_proc_init(void);
|
||||
#endif
|
||||
|
||||
@@ -368,7 +368,7 @@ static inline void sctp_sysctl_register(void) { return; }
|
||||
static inline void sctp_sysctl_unregister(void) { return; }
|
||||
static inline int sctp_sysctl_jiffies_ms(ctl_table *table, int __user *name, int nlen,
|
||||
void __user *oldval, size_t __user *oldlenp,
|
||||
void __user *newval, size_t newlen, void **context) {
|
||||
void __user *newval, size_t newlen) {
|
||||
return -ENOSYS;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user