diff options
| author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-12-10 05:19:10 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-10 12:55:41 -0500 |
| commit | 1f29bcd739972f71f2fd5d5d265daf3e1208fa5e (patch) | |
| tree | 96e20e4d0a077d813d8625d6919aba9bd0b5ed13 | |
| parent | 98d7340c360993fdd703609ff7462051e03cc2fb (diff) | |
[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>
| -rw-r--r-- | arch/frv/kernel/pm.c | 6 | ||||
| -rw-r--r-- | arch/mips/lasat/sysctl.c | 17 | ||||
| -rw-r--r-- | arch/x86_64/kernel/vsyscall.c | 3 | ||||
| -rw-r--r-- | drivers/char/random.c | 2 | ||||
| -rw-r--r-- | include/linux/sysctl.h | 5 | ||||
| -rw-r--r-- | include/net/ip.h | 3 | ||||
| -rw-r--r-- | include/net/sctp/sctp.h | 2 | ||||
| -rw-r--r-- | kernel/sysctl.c | 47 | ||||
| -rw-r--r-- | net/decnet/dn_dev.c | 6 | ||||
| -rw-r--r-- | net/decnet/sysctl_net_decnet.c | 6 | ||||
| -rw-r--r-- | net/ipv4/devinet.c | 3 | ||||
| -rw-r--r-- | net/ipv4/route.c | 3 | ||||
| -rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 16 | ||||
| -rw-r--r-- | net/ipv6/addrconf.c | 3 | ||||
| -rw-r--r-- | net/ipv6/ndisc.c | 9 |
15 files changed, 55 insertions, 76 deletions
diff --git a/arch/frv/kernel/pm.c b/arch/frv/kernel/pm.c index c1d9fc8f1a..ee677ced7b 100644 --- a/arch/frv/kernel/pm.c +++ b/arch/frv/kernel/pm.c | |||
| @@ -223,7 +223,7 @@ static int cmode_procctl(ctl_table *ctl, int write, struct file *filp, | |||
| 223 | 223 | ||
| 224 | static int cmode_sysctl(ctl_table *table, int __user *name, int nlen, | 224 | static int cmode_sysctl(ctl_table *table, int __user *name, int nlen, |
| 225 | void __user *oldval, size_t __user *oldlenp, | 225 | void __user *oldval, size_t __user *oldlenp, |
| 226 | void __user *newval, size_t newlen, void **context) | 226 | void __user *newval, size_t newlen) |
| 227 | { | 227 | { |
| 228 | if (oldval && oldlenp) { | 228 | if (oldval && oldlenp) { |
| 229 | size_t oldlen; | 229 | size_t oldlen; |
| @@ -326,7 +326,7 @@ static int p0_procctl(ctl_table *ctl, int write, struct file *filp, | |||
| 326 | 326 | ||
| 327 | static int p0_sysctl(ctl_table *table, int __user *name, int nlen, | 327 | static int p0_sysctl(ctl_table *table, int __user *name, int nlen, |
| 328 | void __user *oldval, size_t __user *oldlenp, | 328 | void __user *oldval, size_t __user *oldlenp, |
| 329 | void __user *newval, size_t newlen, void **context) | 329 | void __user *newval, size_t newlen) |
| 330 | { | 330 | { |
| 331 | if (oldval && oldlenp) { | 331 | if (oldval && oldlenp) { |
| 332 | size_t oldlen; | 332 | size_t oldlen; |
| @@ -370,7 +370,7 @@ static int cm_procctl(ctl_table *ctl, int write, struct file *filp, | |||
| 370 | 370 | ||
| 371 | static int cm_sysctl(ctl_table *table, int __user *name, int nlen, | 371 | static int cm_sysctl(ctl_table *table, int __user *name, int nlen, |
| 372 | void __user *oldval, size_t __user *oldlenp, | 372 | void __user *oldval, size_t __user *oldlenp, |
| 373 | void __user *newval, size_t newlen, void **context) | 373 | void __user *newval, size_t newlen) |
| 374 | { | 374 | { |
| 375 | if (oldval && oldlenp) { | 375 | if (oldval && oldlenp) { |
| 376 | size_t oldlen; | 376 | size_t oldlen; |
diff --git a/arch/mips/lasat/sysctl.c b/arch/mips/lasat/sysctl.c index da35d45554..12878359f2 100644 --- a/arch/mips/lasat/sysctl.c +++ b/arch/mips/lasat/sysctl.c | |||
| @@ -40,12 +40,12 @@ static DEFINE_MUTEX(lasat_info_mutex); | |||
| 40 | /* Strategy function to write EEPROM after changing string entry */ | 40 | /* Strategy function to write EEPROM after changing string entry */ |
| 41 | int sysctl_lasatstring(ctl_table *table, int *name, int nlen, | 41 | int sysctl_lasatstring(ctl_table *table, int *name, int nlen, |
| 42 | void *oldval, size_t *oldlenp, | 42 | void *oldval, size_t *oldlenp, |
| 43 | void *newval, size_t newlen, void **context) | 43 | void *newval, size_t newlen) |
| 44 | { | 44 | { |
| 45 | int r; | 45 | int r; |
| 46 | mutex_lock(&lasat_info_mutex); | 46 | mutex_lock(&lasat_info_mutex); |
| 47 | r = sysctl_string(table, name, | 47 | r = sysctl_string(table, name, |
| 48 | nlen, oldval, oldlenp, newval, newlen, context); | 48 | nlen, oldval, oldlenp, newval, newlen); |
| 49 | if (r < 0) { | 49 | if (r < 0) { |
| 50 | mutex_unlock(&lasat_info_mutex); | 50 | mutex_unlock(&lasat_info_mutex); |
| 51 | return r; | 51 | return r; |
| @@ -119,11 +119,11 @@ int proc_dolasatrtc(ctl_table *table, int write, struct file *filp, | |||
| 119 | /* Sysctl for setting the IP addresses */ | 119 | /* Sysctl for setting the IP addresses */ |
| 120 | int sysctl_lasat_intvec(ctl_table *table, int *name, int nlen, | 120 | int sysctl_lasat_intvec(ctl_table *table, int *name, int nlen, |
| 121 | void *oldval, size_t *oldlenp, | 121 | void *oldval, size_t *oldlenp, |
| 122 | void *newval, size_t newlen, void **context) | 122 | void *newval, size_t newlen) |
| 123 | { | 123 | { |
| 124 | int r; | 124 | int r; |
| 125 | mutex_lock(&lasat_info_mutex); | 125 | mutex_lock(&lasat_info_mutex); |
| 126 | r = sysctl_intvec(table, name, nlen, oldval, oldlenp, newval, newlen, context); | 126 | r = sysctl_intvec(table, name, nlen, oldval, oldlenp, newval, newlen); |
| 127 | if (r < 0) { | 127 | if (r < 0) { |
| 128 | mutex_unlock(&lasat_info_mutex); | 128 | mutex_unlock(&lasat_info_mutex); |
| 129 | return r; | 129 | return r; |
| @@ -139,14 +139,14 @@ int sysctl_lasat_intvec(ctl_table *table, int *name, int nlen, | |||
| 139 | /* Same for RTC */ | 139 | /* Same for RTC */ |
| 140 | int sysctl_lasat_rtc(ctl_table *table, int *name, int nlen, | 140 | int sysctl_lasat_rtc(ctl_table *table, int *name, int nlen, |
| 141 | void *oldval, size_t *oldlenp, | 141 | void *oldval, size_t *oldlenp, |
| 142 | void *newval, size_t newlen, void **context) | 142 | void *newval, size_t newlen) |
| 143 | { | 143 | { |
| 144 | int r; | 144 | int r; |
| 145 | mutex_lock(&lasat_info_mutex); | 145 | mutex_lock(&lasat_info_mutex); |
| 146 | rtctmp = ds1603_read(); | 146 | rtctmp = ds1603_read(); |
| 147 | if (rtctmp < 0) | 147 | if (rtctmp < 0) |
| 148 | rtctmp = 0; | 148 | rtctmp = 0; |
| 149 | r = sysctl_intvec(table, name, nlen, oldval, oldlenp, newval, newlen, context); | 149 | r = sysctl_intvec(table, name, nlen, oldval, oldlenp, newval, newlen); |
| 150 | if (r < 0) { | 150 | if (r < 0) { |
| 151 | mutex_unlock(&lasat_info_mutex); | 151 | mutex_unlock(&lasat_info_mutex); |
| 152 | return r; | 152 | return r; |
| @@ -251,13 +251,12 @@ int proc_lasat_ip(ctl_table *table, int write, struct file *filp, | |||
| 251 | 251 | ||
| 252 | static int sysctl_lasat_eeprom_value(ctl_table *table, int *name, int nlen, | 252 | static int sysctl_lasat_eeprom_value(ctl_table *table, int *name, int nlen, |
| 253 | void *oldval, size_t *oldlenp, | 253 | void *oldval, size_t *oldlenp, |
| 254 | void *newval, size_t newlen, | 254 | void *newval, size_t newlen) |
| 255 | void **context) | ||
| 256 | { | 255 | { |
| 257 | int r; | 256 | int r; |
| 258 | 257 | ||
| 259 | mutex_lock(&lasat_info_mutex); | 258 | mutex_lock(&lasat_info_mutex); |
| 260 | r = sysctl_intvec(table, name, nlen, oldval, oldlenp, newval, newlen, context); | 259 | r = sysctl_intvec(table, name, nlen, oldval, oldlenp, newval, newlen); |
| 261 | if (r < 0) { | 260 | if (r < 0) { |
| 262 | mutex_unlock(&lasat_info_mutex); | 261 | mutex_unlock(&lasat_info_mutex); |
| 263 | return r; | 262 | return r; |
diff --git a/arch/x86_64/kernel/vsyscall.c b/arch/x86_64/kernel/vsyscall.c index 4a673f5397..2433d6fc68 100644 --- a/arch/x86_64/kernel/vsyscall.c +++ b/arch/x86_64/kernel/vsyscall.c | |||
| @@ -225,8 +225,7 @@ out: | |||
| 225 | 225 | ||
| 226 | static int vsyscall_sysctl_nostrat(ctl_table *t, int __user *name, int nlen, | 226 | static int vsyscall_sysctl_nostrat(ctl_table *t, int __user *name, int nlen, |
| 227 | void __user *oldval, size_t __user *oldlenp, | 227 | void __user *oldval, size_t __user *oldlenp, |
| 228 | void __user *newval, size_t newlen, | 228 | void __user *newval, size_t newlen) |
| 229 | void **context) | ||
| 230 | { | 229 | { |
| 231 | return -ENOSYS; | 230 | return -ENOSYS; |
| 232 | } | 231 | } |
diff --git a/drivers/char/random.c b/drivers/char/random.c index 092a01cc02..13d0b1350a 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
| @@ -1203,7 +1203,7 @@ static int proc_do_uuid(ctl_table *table, int write, struct file *filp, | |||
| 1203 | 1203 | ||
| 1204 | static int uuid_strategy(ctl_table *table, int __user *name, int nlen, | 1204 | static int uuid_strategy(ctl_table *table, int __user *name, int nlen, |
| 1205 | void __user *oldval, size_t __user *oldlenp, | 1205 | void __user *oldval, size_t __user *oldlenp, |
| 1206 | void __user *newval, size_t newlen, void **context) | 1206 | void __user *newval, size_t newlen) |
| 1207 | { | 1207 | { |
| 1208 | unsigned char tmp_uuid[16], *uuid; | 1208 | unsigned char tmp_uuid[16], *uuid; |
| 1209 | unsigned int len; | 1209 | unsigned int len; |
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 94316a98e0..6d8846e7be 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
| @@ -918,8 +918,7 @@ typedef struct ctl_table ctl_table; | |||
| 918 | 918 | ||
| 919 | typedef int ctl_handler (ctl_table *table, int __user *name, int nlen, | 919 | typedef int ctl_handler (ctl_table *table, int __user *name, int nlen, |
| 920 | void __user *oldval, size_t __user *oldlenp, | 920 | void __user *oldval, size_t __user *oldlenp, |
| 921 | void __user *newval, size_t newlen, | 921 | void __user *newval, size_t newlen); |
| 922 | void **context); | ||
| 923 | 922 | ||
| 924 | typedef int proc_handler (ctl_table *ctl, int write, struct file * filp, | 923 | typedef int proc_handler (ctl_table *ctl, int write, struct file * filp, |
| 925 | void __user *buffer, size_t *lenp, loff_t *ppos); | 924 | void __user *buffer, size_t *lenp, loff_t *ppos); |
| @@ -950,7 +949,7 @@ extern int do_sysctl (int __user *name, int nlen, | |||
| 950 | extern int do_sysctl_strategy (ctl_table *table, | 949 | extern int do_sysctl_strategy (ctl_table *table, |
| 951 | int __user *name, int nlen, | 950 | int __user *name, int nlen, |
| 952 | void __user *oldval, size_t __user *oldlenp, | 951 | void __user *oldval, size_t __user *oldlenp, |
| 953 | void __user *newval, size_t newlen, void ** context); | 952 | void __user *newval, size_t newlen); |
| 954 | 953 | ||
| 955 | extern ctl_handler sysctl_string; | 954 | extern ctl_handler sysctl_string; |
| 956 | extern ctl_handler sysctl_intvec; | 955 | extern ctl_handler sysctl_intvec; |
diff --git a/include/net/ip.h b/include/net/ip.h index 83cb9ac555..053f02b5cb 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -376,8 +376,7 @@ int ipv4_doint_and_flush(ctl_table *ctl, int write, | |||
| 376 | size_t *lenp, loff_t *ppos); | 376 | size_t *lenp, loff_t *ppos); |
| 377 | int ipv4_doint_and_flush_strategy(ctl_table *table, int __user *name, int nlen, | 377 | int ipv4_doint_and_flush_strategy(ctl_table *table, int __user *name, int nlen, |
| 378 | void __user *oldval, size_t __user *oldlenp, | 378 | void __user *oldval, size_t __user *oldlenp, |
| 379 | void __user *newval, size_t newlen, | 379 | void __user *newval, size_t newlen); |
| 380 | void **context); | ||
| 381 | #ifdef CONFIG_PROC_FS | 380 | #ifdef CONFIG_PROC_FS |
| 382 | extern int ip_misc_proc_init(void); | 381 | extern int ip_misc_proc_init(void); |
| 383 | #endif | 382 | #endif |
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 215461f18d..c818f87122 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
| @@ -368,7 +368,7 @@ static inline void sctp_sysctl_register(void) { return; } | |||
| 368 | static inline void sctp_sysctl_unregister(void) { return; } | 368 | static inline void sctp_sysctl_unregister(void) { return; } |
| 369 | static inline int sctp_sysctl_jiffies_ms(ctl_table *table, int __user *name, in | ||
