diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2009-09-23 18:57:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-24 10:21:04 -0400 |
commit | 8d65af789f3e2cf4cfbdbf71a0f7a61ebcd41d38 (patch) | |
tree | 121df3bfffc7853ac6d2c514ad514d4a748a0933 /include/linux/sched.h | |
parent | c0d0787b6d47d9f4d5e8bd321921104e854a9135 (diff) |
sysctl: remove "struct file *" argument of ->proc_handler
It's unused.
It isn't needed -- read or write flag is already passed and sysctl
shouldn't care about the rest.
It _was_ used in two places at arch/frv for some reason.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index e951bd2eb9fc..811cd96524d7 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -309,7 +309,7 @@ extern void softlockup_tick(void); | |||
309 | extern void touch_softlockup_watchdog(void); | 309 | extern void touch_softlockup_watchdog(void); |
310 | extern void touch_all_softlockup_watchdogs(void); | 310 | extern void touch_all_softlockup_watchdogs(void); |
311 | extern int proc_dosoftlockup_thresh(struct ctl_table *table, int write, | 311 | extern int proc_dosoftlockup_thresh(struct ctl_table *table, int write, |
312 | struct file *filp, void __user *buffer, | 312 | void __user *buffer, |
313 | size_t *lenp, loff_t *ppos); | 313 | size_t *lenp, loff_t *ppos); |
314 | extern unsigned int softlockup_panic; | 314 | extern unsigned int softlockup_panic; |
315 | extern int softlockup_thresh; | 315 | extern int softlockup_thresh; |
@@ -331,7 +331,7 @@ extern unsigned long sysctl_hung_task_check_count; | |||
331 | extern unsigned long sysctl_hung_task_timeout_secs; | 331 | extern unsigned long sysctl_hung_task_timeout_secs; |
332 | extern unsigned long sysctl_hung_task_warnings; | 332 | extern unsigned long sysctl_hung_task_warnings; |
333 | extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write, | 333 | extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write, |
334 | struct file *filp, void __user *buffer, | 334 | void __user *buffer, |
335 | size_t *lenp, loff_t *ppos); | 335 | size_t *lenp, loff_t *ppos); |
336 | #endif | 336 | #endif |
337 | 337 | ||
@@ -1906,7 +1906,7 @@ extern unsigned int sysctl_sched_time_avg; | |||
1906 | extern unsigned int sysctl_timer_migration; | 1906 | extern unsigned int sysctl_timer_migration; |
1907 | 1907 | ||
1908 | int sched_nr_latency_handler(struct ctl_table *table, int write, | 1908 | int sched_nr_latency_handler(struct ctl_table *table, int write, |
1909 | struct file *file, void __user *buffer, size_t *length, | 1909 | void __user *buffer, size_t *length, |
1910 | loff_t *ppos); | 1910 | loff_t *ppos); |
1911 | #endif | 1911 | #endif |
1912 | #ifdef CONFIG_SCHED_DEBUG | 1912 | #ifdef CONFIG_SCHED_DEBUG |
@@ -1924,7 +1924,7 @@ extern unsigned int sysctl_sched_rt_period; | |||
1924 | extern int sysctl_sched_rt_runtime; | 1924 | extern int sysctl_sched_rt_runtime; |
1925 | 1925 | ||
1926 | int sched_rt_handler(struct ctl_table *table, int write, | 1926 | int sched_rt_handler(struct ctl_table *table, int write, |
1927 | struct file *filp, void __user *buffer, size_t *lenp, | 1927 | void __user *buffer, size_t *lenp, |
1928 | loff_t *ppos); | 1928 | loff_t *ppos); |
1929 | 1929 | ||
1930 | extern unsigned int sysctl_sched_compat_yield; | 1930 | extern unsigned int sysctl_sched_compat_yield; |