History

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.

Alexey Dobriyan committed 17 years ago

Commit 8d65af71 parent c0d078760 files · +239 −270Browse files

Unified · Split

60 files
  1. arch/frv/kernel/pm.c +7 −7
  2. arch/mips/lasat/sysctl.c +9 −9
  3. arch/s390/appldata/appldata_base.c +4 −5
  4. arch/s390/kernel/debug.c +2 −2
  5. arch/s390/mm/cmm.c +2 −2
  6. arch/x86/include/asm/nmi.h +1 −2
  7. arch/x86/kernel/apic/nmi.c +2 −2
  8. arch/x86/kernel/vsyscall_64.c +1 −9
  9. drivers/cdrom/cdrom.c +4 −4
  10. drivers/char/random.c +2 −2
  11. drivers/net/wireless/arlan-proc.c +14 −14
  12. drivers/parport/procfs.c +6 −6
  13. fs/coda/coda_int.h +1 −0
  14. fs/drop_caches.c +2 −2
  15. fs/file_table.c +3 −3
  16. fs/proc/proc_sysctl.c +1 −1
  17. fs/xfs/linux-2.6/xfs_sysctl.c +1 −2
  18. include/linux/fs.h +1 −1
  19. include/linux/ftrace.h +2 −2
  20. include/linux/hugetlb.h +3 −3
  21. include/linux/mm.h +1 −1
  22. include/linux/mmzone.h +6 −7
  23. include/linux/sched.h +4 −4
  24. include/linux/security.h +1 −1
  25. include/linux/swap.h +1 −1
  26. include/linux/sysctl.h +9 −10
  27. include/linux/writeback.h +5 −6
  28. include/net/ip.h +1 −1
  29. include/net/ndisc.h +0 −2
  30. ipc/ipc_sysctl.c +8 −8
  31. ipc/mq_sysctl.c +4 −4
  32. kernel/hung_task.c +2 −2
  33. kernel/sched.c +2 −2
  34. kernel/sched_fair.c +2 −2
  35. kernel/slow-work.c +6 −6
  36. kernel/softlockup.c +2 −2
  37. kernel/sysctl.c +33 −45
  38. kernel/trace/ftrace.c +2 −2
  39. kernel/trace/trace_stack.c +2 −2
  40. kernel/utsname_sysctl.c +2 −2
  41. mm/hugetlb.c +6 −6
  42. mm/page-writeback.c +10 −10
  43. mm/page_alloc.c +12 −12
  44. mm/vmscan.c +2 −2
  45. net/bridge/br_netfilter.c +2 −2
  46. net/decnet/dn_dev.c +2 −3
  47. net/decnet/sysctl_net_decnet.c +0 −2
  48. net/ipv4/devinet.c +6 −6
  49. net/ipv4/route.c +3 −4
  50. net/ipv4/sysctl_net_ipv4.c +8 −8
  51. net/ipv6/addrconf.c +4 −4
  52. net/ipv6/ndisc.c +4 −4
  53. net/ipv6/route.c +2 −2
  54. net/irda/irsysctl.c +4 −4
  55. net/netfilter/ipvs/ip_vs_ctl.c +4 −4
  56. net/netfilter/nf_log.c +2 −2
  57. net/phonet/sysctl.c +2 −2
  58. net/sunrpc/sysctl.c +2 −2
  59. net/sunrpc/xprtrdma/svc_rdma.c +1 −1
  60. security/min_addr.c +2 −2
arch/frv/kernel/pm.c+7−7
@@ -150,7 +150,7 @@ static int user_atoi(char __user *ubuf, size_t len) · 149 unmodified lines
150150 /*
151151 * Send us to sleep.
152152 */
153−static int sysctl_pm_do_suspend(ctl_table *ctl, int write, struct file *filp,
153+static int sysctl_pm_do_suspend(ctl_table *ctl, int write,
154154 void __user *buffer, size_t *lenp, loff_t *fpos)
155155 {
156156 int retval, mode;
@@ -198,13 +198,13 @@ static int try_set_cmode(int new_cmode) · 41 unmodified lines
198198 }
199199
200200
201−static int cmode_procctl(ctl_table *ctl, int write, struct file *filp,
201+static int cmode_procctl(ctl_table *ctl, int write,
202202 void __user *buffer, size_t *lenp, loff_t *fpos)
203203 {
204204 int new_cmode;
205205
206206 if (!write)
207− return proc_dointvec(ctl, write, filp, buffer, lenp, fpos);
207+ return proc_dointvec(ctl, write, buffer, lenp, fpos);
208208
209209 new_cmode = user_atoi(buffer, *lenp);
210210
@@ -301,13 +301,13 @@ static int try_set_cm(int new_cm) · 90 unmodified lines
301301 return 0;
302302 }
303303
304−static int p0_procctl(ctl_table *ctl, int write, struct file *filp,
304+static int p0_procctl(ctl_table *ctl, int write,
305305 void __user *buffer, size_t *lenp, loff_t *fpos)
306306 {
307307 int new_p0;
308308
309309 if (!write)
310− return proc_dointvec(ctl, write, filp, buffer, lenp, fpos);
310+ return proc_dointvec(ctl, write, buffer, lenp, fpos);
311311
312312 new_p0 = user_atoi(buffer, *lenp);
313313
@@ -345,13 +345,13 @@ static int p0_sysctl(ctl_table *table, · 31 unmodified lines
345345 return 1;
346346 }
347347
348−static int cm_procctl(ctl_table *ctl, int write, struct file *filp,
348+static int cm_procctl(ctl_table *ctl, int write,
349349 void __user *buffer, size_t *lenp, loff_t *fpos)
350350 {
351351 int new_cm;
352352
353353 if (!write)
354− return proc_dointvec(ctl, write, filp, buffer, lenp, fpos);
354+ return proc_dointvec(ctl, write, buffer, lenp, fpos);
355355
356356 new_cm = user_atoi(buffer, *lenp);
357357
arch/mips/lasat/sysctl.c+9−9
@@ -56,12 +56,12 @@ int sysctl_lasatstring(ctl_table *table, · 55 unmodified lines
5656
5757
5858 /* And the same for proc */
59−int proc_dolasatstring(ctl_table *table, int write, struct file *filp,
59+int proc_dolasatstring(ctl_table *table, int write,
6060 void *buffer, size_t *lenp, loff_t *ppos)
6161 {
6262 int r;
6363
64− r = proc_dostring(table, write, filp, buffer, lenp, ppos);
64+ r = proc_dostring(table, write, buffer, lenp, ppos);
6565 if ((!write) || r)
6666 return r;
6767
@@ -71,12 +71,12 @@ int proc_dolasatstring(ctl_table *table, int write, struct file *filp, · 3 unmodified lines
7171 }
7272
7373 /* proc function to write EEPROM after changing int entry */
74−int proc_dolasatint(ctl_table *table, int write, struct file *filp,
74+int proc_dolasatint(ctl_table *table, int write,
7575 void *buffer, size_t *lenp, loff_t *ppos)
7676 {
7777 int r;
7878
79− r = proc_dointvec(table, write, filp, buffer, lenp, ppos);
79+ r = proc_dointvec(table, write, buffer, lenp, ppos);
8080 if ((!write) || r)
8181 return r;
8282
@@ -89,7 +89,7 @@ int proc_dolasatint(ctl_table *table, int write, struct file *filp, · 6 unmodified lines
8989 static int rtctmp;
9090
9191 /* proc function to read/write RealTime Clock */
92−int proc_dolasatrtc(ctl_table *table, int write, struct file *filp,
92+int proc_dolasatrtc(ctl_table *table, int write,
9393 void *buffer, size_t *lenp, loff_t *ppos)
9494 {
9595 struct timespec ts;
@@ -102,7 +102,7 @@ int proc_dolasatrtc(ctl_table *table, int write, struct file *filp, · 6 unmodified lines
102102 if (rtctmp < 0)
103103 rtctmp = 0;
104104 }
105− r = proc_dointvec(table, write, filp, buffer, lenp, ppos);
105+ r = proc_dointvec(table, write, buffer, lenp, ppos);
106106 if (r)
107107 return r;
108108
@@ -154,7 +154,7 @@ int sysctl_lasat_rtc(ctl_table *table, · 45 unmodified lines
154154 #endif
155155
156156 #ifdef CONFIG_INET
157−int proc_lasat_ip(ctl_table *table, int write, struct file *filp,
157+int proc_lasat_ip(ctl_table *table, int write,
158158 void *buffer, size_t *lenp, loff_t *ppos)
159159 {
160160 unsigned int ip;
@@ -231,12 +231,12 @@ static int sysctl_lasat_prid(ctl_table *table, · 70 unmodified lines
231231 return 0;
232232 }
233233
234−int proc_lasat_prid(ctl_table *table, int write, struct file *filp,
234+int proc_lasat_prid(ctl_table *table, int write,
235235 void *buffer, size_t *lenp, loff_t *ppos)
236236 {
237237 int r;
238238
239− r = proc_dointvec(table, write, filp, buffer, lenp, ppos);
239+ r = proc_dointvec(table, write, buffer, lenp, ppos);
240240 if (r < 0)
241241 return r;
242242 if (write) {
arch/s390/appldata/appldata_base.c+4−5
@@ -50,10 +50,9 @@ static struct platform_device *appldata_pdev; · 49 unmodified lines
5050 * /proc entries (sysctl)
5151 */
5252 static const char appldata_proc_name[APPLDATA_PROC_NAME_LENGTH] = "appldata";
53−static int appldata_timer_handler(ctl_table *ctl, int write, struct file *filp,
53+static int appldata_timer_handler(ctl_table *ctl, int write,
5454 void __user *buffer, size_t *lenp, loff_t *ppos);
5555 static int appldata_interval_handler(ctl_table *ctl, int write,
56− struct file *filp,
5756 void __user *buffer,
5857 size_t *lenp, loff_t *ppos);
5958
@@ -247,7 +246,7 @@ __appldata_vtimer_setup(int cmd) · 187 unmodified lines
247246 * Start/Stop timer, show status of timer (0 = not active, 1 = active)
248247 */
249248 static int
250−appldata_timer_handler(ctl_table *ctl, int write, struct file *filp,
249+appldata_timer_handler(ctl_table *ctl, int write,
251250 void __user *buffer, size_t *lenp, loff_t *ppos)
252251 {
253252 int len;
@@ -289,7 +288,7 @@ out: · 35 unmodified lines
289288 * current timer interval.
290289 */
291290 static int
292−appldata_interval_handler(ctl_table *ctl, int write, struct file *filp,
291+appldata_interval_handler(ctl_table *ctl, int write,
293292 void __user *buffer, size_t *lenp, loff_t *ppos)
294293 {
295294 int len, interval;
@@ -335,7 +334,7 @@ out: · 39 unmodified lines
335334 * monitoring (0 = not in process, 1 = in process)
336335 */
337336 static int
338−appldata_generic_handler(ctl_table *ctl, int write, struct file *filp,
337+appldata_generic_handler(ctl_table *ctl, int write,
339338 void __user *buffer, size_t *lenp, loff_t *ppos)
340339 {
341340 struct appldata_ops *ops = NULL, *tmp_ops;
arch/s390/kernel/debug.c+2−2
@@ -881,11 +881,11 @@ static int debug_active=1; · 880 unmodified lines
881881 * if debug_active is already off
882882 */
883883 static int
884−s390dbf_procactive(ctl_table *table, int write, struct file *filp,
884+s390dbf_procactive(ctl_table *table, int write,
885885 void __user *buffer, size_t *lenp, loff_t *ppos)
886886 {
887887 if (!write || debug_stoppable || !debug_active)
888− return proc_dointvec(table, write, filp, buffer, lenp, ppos);
888+ return proc_dointvec(table, write, buffer, lenp, ppos);
889889 else
890890 return 0;
891891 }
arch/s390/mm/cmm.c+2−2
@@ -262,7 +262,7 @@ cmm_skip_blanks(char *cp, char **endp) · 261 unmodified lines
262262 static struct ctl_table cmm_table[];
263263
264264 static int
265−cmm_pages_handler(ctl_table *ctl, int write, struct file *filp,
265+cmm_pages_handler(ctl_table *ctl, int write,
266266 void __user *buffer, size_t *lenp, loff_t *ppos)
267267 {
268268 char buf[16], *p;
@@ -303,7 +303,7 @@ cmm_pages_handler(ctl_table *ctl, int write, struct file *filp, · 34 unmodified lines
303303 }
304304
305305 static int
306−cmm_timeout_handler(ctl_table *ctl, int write, struct file *filp,
306+cmm_timeout_handler(ctl_table *ctl, int write,
307307 void __user *buffer, size_t *lenp, loff_t *ppos)
308308 {
309309 char buf[64], *p;
arch/x86/include/asm/nmi.h+1−2
@@ -40,8 +40,7 @@ extern unsigned int nmi_watchdog; · 39 unmodified lines
4040 #define NMI_INVALID 3
4141
4242 struct ctl_table;
43−struct file;
44−extern int proc_nmi_enabled(struct ctl_table *, int , struct file *,
43+extern int proc_nmi_enabled(struct ctl_table *, int ,
4544 void __user *, size_t *, loff_t *);
4645 extern int unknown_nmi_panic;
4746
arch/x86/kernel/apic/nmi.c+2−2
@@ -508,14 +508,14 @@ static int unknown_nmi_panic_callback(struct pt_regs *regs, int cpu) · 507 unmodified lines
508508 /*
509509 * proc handler for /proc/sys/kernel/nmi
510510 */
511−int proc_nmi_enabled(struct ctl_table *table, int write, struct file *file,
511+int proc_nmi_enabled(struct ctl_table *table, int write,
512512 void __user *buffer, size_t *length, loff_t *ppos)
513513 {
514514 int old_state;
515515
516516 nmi_watchdog_enabled = (atomic_read(&nmi_active) > 0) ? 1 : 0;
517517 old_state = nmi_watchdog_enabled;
518− proc_dointvec(table, write, file, buffer, length, ppos);
518+ proc_dointvec(table, write, buffer, length, ppos);
519519 if (!!old_state == !!nmi_watchdog_enabled)
520520 return 0;
521521
arch/x86/kernel/vsyscall_64.c+1−9
@@ -228,19 +228,11 @@ static long __vsyscall(3) venosys_1(void) · 227 unmodified lines
228228 }
229229
230230 #ifdef CONFIG_SYSCTL
231−
232−static int
233−vsyscall_sysctl_change(ctl_table *ctl, int write, struct file * filp,
234− void __user *buffer, size_t *lenp, loff_t *ppos)
235−{
236− return proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
237−}
238−
239231 static ctl_table kernel_table2[] = {
240232 { .procname = "vsyscall64",
241233 .data = &vsyscall_gtod_data.sysctl_enabled, .maxlen = sizeof(int),
242234 .mode = 0644,
243− .proc_handler = vsyscall_sysctl_change },
235+ .proc_handler = proc_dointvec },
244236 {}
245237 };
246238
drivers/cdrom/cdrom.c+4−4
@@ -3412,7 +3412,7 @@ static int cdrom_print_info(const char *header, int val, char *info, · 3411 unmodified lines
34123412 return 0;
34133413 }
34143414
3415−static int cdrom_sysctl_info(ctl_table *ctl, int write, struct file * filp,
3415+static int cdrom_sysctl_info(ctl_table *ctl, int write,
34163416 void __user *buffer, size_t *lenp, loff_t *ppos)
34173417 {
34183418 int pos;
@@ -3489,7 +3489,7 @@ static int cdrom_sysctl_info(ctl_table *ctl, int write, struct file * filp, · 70 unmodified lines
34893489 goto done;
34903490 doit:
34913491 mutex_unlock(&cdrom_mutex);
3492− return proc_dostring(ctl, write, filp, buffer, lenp, ppos);
3492+ return proc_dostring(ctl, write, buffer, lenp, ppos);
34933493 done:
34943494 printk(KERN_INFO "cdrom: info buffer too small\n");
34953495 goto doit;
@@ -3525,12 +3525,12 @@ static void cdrom_update_settings(void) · 29 unmodified lines
35253525 mutex_unlock(&cdrom_mutex);
35263526 }
35273527
3528−static int cdrom_sysctl_handler(ctl_table *ctl, int write, struct file * filp,
3528+static int cdrom_sysctl_handler(ctl_table *ctl, int write,
35293529 void __user *buffer, size_t *lenp, loff_t *ppos)
35303530 {
35313531 int ret;
35323532
3533− ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
3533+ ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
35343534
35353535 if (write) {
35363536
drivers/char/random.c+2−2
@@ -1231,7 +1231,7 @@ static char sysctl_bootid[16]; · 1230 unmodified lines
12311231 * as an ASCII string in the standard UUID format. If accesses via the
12321232 * sysctl system call, it is returned as 16 bytes of binary data.
12331233 */
1234−static int proc_do_uuid(ctl_table *table, int write, struct file *filp,
1234+static int proc_do_uuid(ctl_table *table, int write,
12351235 void __user *buffer, size_t *lenp, loff_t *ppos)
12361236 {
12371237 ctl_table fake_table;
@@ -1254,7 +1254,7 @@ static int proc_do_uuid(ctl_table *table, int write, struct file *filp, · 16 unmodified lines
12541254 fake_table.data = buf;
12551255 fake_table.maxlen = sizeof(buf);
12561256
1257− return proc_dostring(&fake_table, write, filp, buffer, lenp, ppos);
1257+ return proc_dostring(&fake_table, write, buffer, lenp, ppos);
12581258 }
12591259
12601260 static int uuid_strategy(ctl_table *table,
drivers/net/wireless/arlan-proc.c+14−14
@@ -402,7 +402,7 @@ static int arlan_setup_card_by_book(struct net_device *dev) · 401 unmodified lines
402402
403403 static char arlan_drive_info[ARLAN_STR_SIZE] = "A655\n\0";
404404
405−static int arlan_sysctl_info(ctl_table * ctl, int write, struct file *filp,
405+static int arlan_sysctl_info(ctl_table * ctl, int write,
406406 void __user *buffer, size_t * lenp, loff_t *ppos)
407407 {
408408 int i;
@@ -629,7 +629,7 @@ final: · 220 unmodified lines
629629 *lenp = pos;
630630
631631 if (!write)
632− retv = proc_dostring(ctl, write, filp, buffer, lenp, ppos);
632+ retv = proc_dostring(ctl, write, buffer, lenp, ppos);
633633 else
634634 {
635635 *lenp = 0;
@@ -639,7 +639,7 @@ final: · 3 unmodified lines
639639 }
640640
641641
642−static int arlan_sysctl_info161719(ctl_table * ctl, int write, struct file *filp,
642+static int arlan_sysctl_info161719(ctl_table * ctl, int write,
643643 void __user *buffer, size_t * lenp, loff_t *ppos)
644644 {
645645 int i;
@@ -669,11 +669,11 @@ static int arlan_sysctl_info161719(ctl_table * ctl, int write, struct file *filp · 23 unmodified lines
669669
670670 final:
671671 *lenp = pos;
672− retv = proc_dostring(ctl, write, filp, buffer, lenp, ppos);
672+ retv = proc_dostring(ctl, write, buffer, lenp, ppos);
673673 return retv;
674674 }
675675
676−static int arlan_sysctl_infotxRing(ctl_table * ctl, int write, struct file *filp,
676+static int arlan_sysctl_infotxRing(ctl_table * ctl, int write,
677677 void __user *buffer, size_t * lenp, loff_t *ppos)
678678 {
679679 int i;
@@ -698,11 +698,11 @@ static int arlan_sysctl_infotxRing(ctl_table * ctl, int write, struct file *filp · 18 unmodified lines
698698 SARLBNpln(u_char, txBuffer, 0x800);
699699 final:
700700 *lenp = pos;
701− retv = proc_dostring(ctl, write, filp, buffer, lenp, ppos);
701+ retv = proc_dostring(ctl, write, buffer, lenp, ppos);
702702 return retv;
703703 }
704704
705−static int arlan_sysctl_inforxRing(ctl_table * ctl, int write, struct file *filp,
705+static int arlan_sysctl_inforxRing(ctl_table * ctl, int write,
706706 void __user *buffer, size_t * lenp, loff_t *ppos)
707707 {
708708 int i;
@@ -726,11 +726,11 @@ static int arlan_sysctl_inforxRing(ctl_table * ctl, int write, struct file *filp · 17 unmodified lines
726726 SARLBNpln(u_char, rxBuffer, 0x800);
727727 final:
728728 *lenp = pos;
729− retv = proc_dostring(ctl, write, filp, buffer, lenp, ppos);
729+ retv = proc_dostring(ctl, write, buffer, lenp, ppos);
730730 return retv;
731731 }
732732
733−static int arlan_sysctl_info18(ctl_table * ctl, int write, struct file *filp,
733+static int arlan_sysctl_info18(ctl_table * ctl, int write,
734734 void __user *buffer, size_t * lenp, loff_t *ppos)
735735 {
736736 int i;
@@ -756,7 +756,7 @@ static int arlan_sysctl_info18(ctl_table * ctl, int write, struct file *filp, · 19 unmodified lines
756756
757757 final:
758758 *lenp = pos;
759− retv = proc_dostring(ctl, write, filp, buffer, lenp, ppos);
759+ retv = proc_dostring(ctl, write, buffer, lenp, ppos);
760760 return retv;
761761 }
762762
@@ -766,7 +766,7 @@ final: · 3 unmodified lines
766766
767767 static char conf_reset_result[200];
768768
769−static int arlan_configure(ctl_table * ctl, int write, struct file *filp,
769+static int arlan_configure(ctl_table * ctl, int write,
770770 void __user *buffer, size_t * lenp, loff_t *ppos)
771771 {
772772 int pos = 0;
@@ -788,10 +788,10 @@ static int arlan_configure(ctl_table * ctl, int write, struct file *filp, · 15 unmodified lines
788788 return -1;
789789
790790 *lenp = pos;
791− return proc_dostring(ctl, write, filp, buffer, lenp, ppos);
791+ return proc_dostring(ctl, write, buffer, lenp, ppos);
792792 }
793793
794−static int arlan_sysctl_reset(ctl_table * ctl, int write, struct file *filp,
794+static int arlan_sysctl_reset(ctl_table * ctl, int write,
795795 void __user *buffer, size_t * lenp, loff_t *ppos)
796796 {
797797 int pos = 0;
@@ -811,7 +811,7 @@ static int arlan_sysctl_reset(ctl_table * ctl, int write, struct file *filp, · 13 unmodified lines
811811 } else
812812 return -1;
813813 *lenp = pos + 3;
814− return proc_dostring(ctl, write, filp, buffer, lenp, ppos);
814+ return proc_dostring(ctl, write, buffer, lenp, ppos);
815815 }
816816
817817
drivers/parport/procfs.c+6−6
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131 #define PARPORT_MIN_SPINTIME_VALUE 1
3232 #define PARPORT_MAX_SPINTIME_VALUE 1000
3333
34−static int do_active_device(ctl_table *table, int write, struct file *filp,
34+static int do_active_device(ctl_table *table, int write,
3535 void __user *result, size_t *lenp, loff_t *ppos)
3636 {
3737 struct parport *port = (struct parport *)table->extra1;
@@ -68,7 +68,7 @@ static int do_active_device(ctl_table *table, int write, struct file *filp, · 30 unmodified lines
6868 }
6969
7070 #ifdef CONFIG_PARPORT_1284
71−static int do_autoprobe(ctl_table *table, int write, struct file *filp,
71+static int do_autoprobe(ctl_table *table, int write,
7272 void __user *result, size_t *lenp, loff_t *ppos)
7373 {
7474 struct parport_device_info *info = table->extra2;
@@ -111,7 +111,7 @@ static int do_autoprobe(ctl_table *table, int write, struct file *filp, · 36 unmodified lines
111111 #endif /* IEEE1284.3 support. */
112112
113113 static int do_hardware_base_addr (ctl_table *table, int write,
114− struct file *filp, void __user *result,
114+ void __user *result,
115115 size_t *lenp, loff_t *ppos)
116116 {
117117 struct parport *port = (struct parport *)table->extra1;
@@ -139,7 +139,7 @@ static int do_hardware_base_addr (ctl_table *table, int write, · 21 unmodified lines
139139 }
140140
141141 static int do_hardware_irq (ctl_table *table, int write,
142− struct file *filp, void __user *result,
142+ void __user *result,
143143 size_t *lenp, loff_t *ppos)
144144 {
145145 struct parport *port = (struct parport *)table->extra1;
@@ -167,7 +167,7 @@ static int do_hardware_irq (ctl_table *table, int write, · 21 unmodified lines
167167 }
168168
169169 static int do_hardware_dma (ctl_table *table, int write,
170− struct file *filp, void __user *result,
170+ void __user *result,
171171 size_t *lenp, loff_t *ppos)
172172 {
173173 struct parport *port = (struct parport *)table->extra1;
@@ -195,7 +195,7 @@ static int do_hardware_dma (ctl_table *table, int write, · 21 unmodified lines
195195 }
196196
197197 static int do_hardware_modes (ctl_table *table, int write,
198− struct file *filp, void __user *result,
198+ void __user *result,
199199 size_t *lenp, loff_t *ppos)
200200 {
201201 struct parport *port = (struct parport *)table->extra1;
fs/coda/coda_int.h+1−0
@@ -2,6 +2,7 @@ · 1 unmodified line
22 #define _CODA_INT_
33
44 struct dentry;
5+struct file;
56
67 extern struct file_system_type coda_fs_type;
78 extern unsigned long coda_timeout;
fs/drop_caches.c+2−2
@@ -63,9 +63,9 @@ static void drop_slab(void) · 62 unmodified lines
6363 }
6464
6565 int drop_caches_sysctl_handler(ctl_table *table, int write,
66− struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
66+ void __user *buffer, size_t *length, loff_t *ppos)
6767 {
68− proc_dointvec_minmax(table, write, file, buffer, length, ppos);
68+ proc_dointvec_minmax(table, write, buffer, length, ppos);
6969 if (write) {
7070 if (sysctl_drop_caches & 1)
7171 drop_pagecache();
fs/file_table.c+3−3
@@ -74,14 +74,14 @@ EXPORT_SYMBOL_GPL(get_max_files); · 73 unmodified lines
7474 * Handle nr_files sysctl
7575 */
7676 #if defined(CONFIG_SYSCTL) && defined(CONFIG_PROC_FS)
77−int proc_nr_files(ctl_table *table, int write, struct file *filp,
77+int proc_nr_files(ctl_table *table, int write,
7878 void __user *buffer, size_t *lenp, loff_t *ppos)
7979 {
8080 files_stat.nr_files = get_nr_files();
81− return proc_dointvec(table, write, filp, buffer, lenp, ppos);
81+ return proc_dointvec(table, write, buffer, lenp, ppos);
8282 }
8383 #else
84−int proc_nr_files(ctl_table *table, int write, struct file *filp,
84+int proc_nr_files(ctl_table *table, int write,
8585 void __user *buffer, size_t *lenp, loff_t *ppos)
8686 {
8787 return -ENOSYS;
fs/proc/proc_sysctl.c+1−1
@@ -153,7 +153,7 @@ static ssize_t proc_sys_call_handler(struct file *filp, void __user *buf, · 152 unmodified lines
153153
154154 /* careful: calling conventions are nasty here */
155155 res = count;
156− error = table->proc_handler(table, write, filp, buf, &res, ppos);
156+ error = table->proc_handler(table, write, buf, &res, ppos);
157157 if (!error)
158158 error = res;
159159 out:
fs/xfs/linux-2.6/xfs_sysctl.c+1−2
@@ -26,7 +26,6 @@ STATIC int · 25 unmodified lines
2626 xfs_stats_clear_proc_handler(
2727 ctl_table *ctl,
2828 int write,
29− struct file *filp,
3029 void __user *buffer,
3130 size_t *lenp,
3231 loff_t *ppos)
@@ -34,7 +33,7 @@ xfs_stats_clear_proc_handler( · 1 unmodified line
3433 int c, ret, *valp = ctl->data;
3534 __uint32_t vn_active;
3635
37− ret = proc_dointvec_minmax(ctl, write, filp, buffer, lenp, ppos);
36+ ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos);
3837
3938 if (!ret && write && *valp) {
4039 printk("XFS Clearing xfsstats\n");
include/linux/fs.h+1−1
@@ -2467,7 +2467,7 @@ ssize_t simple_attr_write(struct file *file, const char __user *buf, · 2466 unmodified lines
24672467 size_t len, loff_t *ppos);
24682468
24692469 struct ctl_table;
2470−int proc_nr_files(struct ctl_table *table, int write, struct file *filp,
2470+int proc_nr_files(struct ctl_table *table, int write,
24712471 void __user *buffer, size_t *lenp, loff_t *ppos);
24722472
24732473 int __init get_filesystem_list(char *buf);
include/linux/ftrace.h+2−2
@@ -19,7 +19,7 @@ · 18 unmodified lines
1919 extern int ftrace_enabled;
2020 extern int
2121 ftrace_enable_sysctl(struct ctl_table *table, int write,
22− struct file *filp, void __user *buffer, size_t *lenp,
22+ void __user *buffer, size_t *lenp,
2323 loff_t *ppos);
2424
2525 typedef void (*ftrace_func_t)(unsigned long ip, unsigned long parent_ip);
@@ -94,7 +94,7 @@ static inline void ftrace_start(void) { } · 68 unmodified lines
9494 extern int stack_tracer_enabled;
9595 int
9696 stack_trace_sysctl(struct ctl_table *table, int write,
97− struct file *file, void __user *buffer, size_t *lenp,
97+ void __user *buffer, size_t *lenp,
9898 loff_t *ppos);
9999 #endif
100100
include/linux/hugetlb.h+3−3
@@ -20,9 +20,9 @@ static inline int is_vm_hugetlb_page(struct vm_area_struct *vma) · 19 unmodified lines
2020 }
2121
2222 void reset_vma_resv_huge_pages(struct vm_area_struct *vma);
23−int hugetlb_sysctl_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *);
24−int hugetlb_overcommit_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *);
25−int hugetlb_treat_movable_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *);
23+int hugetlb_sysctl_handler(struct ctl_table *, int, void __user *, size_t *, loff_t *);
24+int hugetlb_overcommit_handler(struct ctl_table *, int, void __user *, size_t *, loff_t *);
25+int hugetlb_treat_movable_handler(struct ctl_table *, int, void __user *, size_t *, loff_t *);
2626 int copy_hugetlb_page_range(struct mm_struct *, struct mm_struct *, struct vm_area_struct *);
2727 int follow_hugetlb_page(struct mm_struct *, struct vm_area_struct *,
2828 struct page **, struct vm_area_struct **,
include/linux/mm.h+1−1
@@ -1279,7 +1279,7 @@ int in_gate_area_no_task(unsigned long addr); · 1278 unmodified lines
12791279 #define in_gate_area(task, addr) ({(void)task; in_gate_area_no_task(addr);})
12801280 #endif /* __HAVE_ARCH_GATE_AREA */
12811281
1282−int drop_caches_sysctl_handler(struct ctl_table *, int, struct file *,
1282+int drop_caches_sysctl_handler(struct ctl_table *, int,
12831283 void __user *, size_t *, loff_t *);
12841284 unsigned long shrink_slab(unsigned long scanned, gfp_t gfp_mask,
12851285 unsigned long lru_pages);
include/linux/mmzone.h+6−7
@@ -755,21 +755,20 @@ static inline int is_dma(struct zone *zone) · 754 unmodified lines
755755
756756 /* These two functions are used to setup the per zone pages min values */
757757 struct ctl_table;
758−struct file;
759−int min_free_kbytes_sysctl_handler(struct ctl_table *, int, struct file *,
758+int min_free_kbytes_sysctl_handler(struct ctl_table *, int,
760759 void __user *, size_t *, loff_t *);
761760 extern int sysctl_lowmem_reserve_ratio[MAX_NR_ZONES-1];
762−int lowmem_reserve_ratio_sysctl_handler(struct ctl_table *, int, struct file *,
761+int lowmem_reserve_ratio_sysctl_handler(struct ctl_table *, int,
763762 void __user *, size_t *, loff_t *);
764−int percpu_pagelist_fraction_sysctl_handler(struct ctl_table *, int, struct file *,
763+int percpu_pagelist_fraction_sysctl_handler(struct ctl_table *, int,
765764 void __user *, size_t *, loff_t *);
766765 int sysctl_min_unmapped_ratio_sysctl_handler(struct ctl_table *, int,
767− struct file *, void __user *, size_t *, loff_t *);
766+ void __user *, size_t *, loff_t *);
768767 int sysctl_min_slab_ratio_sysctl_handler(struct ctl_table *, int,
769− struct file *, void __user *, size_t *, loff_t *);
768+ void __user *, size_t *, loff_t *);
770769
771770 extern int numa_zonelist_order_handler(struct ctl_table *, int,
772− struct file *, void __user *, size_t *, loff_t *);
771+ void __user *, size_t *, loff_t *);
773772 extern char numa_zonelist_order[];
774773 #define NUMA_ZONELIST_ORDER_LEN 16 /* string buffer size */
775774
include/linux/sched.h+4−4
@@ -309,7 +309,7 @@ extern void softlockup_tick(void); · 308 unmodified lines
309309 extern void touch_softlockup_watchdog(void);
310310 extern void touch_all_softlockup_watchdogs(void);
311311 extern int proc_dosoftlockup_thresh(struct ctl_table *table, int write,
312− struct file *filp, void __user *buffer,
312+ void __user *buffer,
313313 size_t *lenp, loff_t *ppos);
314314 extern unsigned int softlockup_panic;
315315 extern int softlockup_thresh;
@@ -331,7 +331,7 @@ extern unsigned long sysctl_hung_task_check_count; · 15 unmodified lines
331331 extern unsigned long sysctl_hung_task_timeout_secs;
332332 extern unsigned long sysctl_hung_task_warnings;
333333 extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write,
334− struct file *filp, void __user *buffer,
334+ void __user *buffer,
335335 size_t *lenp, loff_t *ppos);
336336 #endif
337337
@@ -1906,7 +1906,7 @@ extern unsigned int sysctl_sched_time_avg; · 1568 unmodified lines
19061906 extern unsigned int sysctl_timer_migration;
19071907
19081908 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,
19101910 loff_t *ppos);
19111911 #endif
19121912 #ifdef CONFIG_SCHED_DEBUG
@@ -1924,7 +1924,7 @@ extern unsigned int sysctl_sched_rt_period; · 11 unmodified lines
19241924 extern int sysctl_sched_rt_runtime;
19251925
19261926 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,
19281928 loff_t *ppos);
19291929
19301930 extern unsigned int sysctl_sched_compat_yield;
include/linux/security.h+1−1
@@ -133,7 +133,7 @@ static inline unsigned long round_hint_to_min(unsigned long hint) · 132 unmodified lines
133133 return PAGE_ALIGN(mmap_min_addr);
134134 return hint;
135135 }
136−extern int mmap_min_addr_handler(struct ctl_table *table, int write, struct file *filp,
136+extern int mmap_min_addr_handler(struct ctl_table *table, int write,
137137 void __user *buffer, size_t *lenp, loff_t *ppos);
138138
139139 #ifdef CONFIG_SECURITY
include/linux/swap.h+1−1
@@ -245,7 +245,7 @@ extern int page_evictable(struct page *page, struct vm_area_struct *vma); · 244 unmodified lines
245245 extern void scan_mapping_unevictable_pages(struct address_space *);
246246
247247 extern unsigned long scan_unevictable_pages;
248−extern int scan_unevictable_handler(struct ctl_table *, int, struct file *,
248+extern int scan_unevictable_handler(struct ctl_table *, int,
249249 void __user *, size_t *, loff_t *);
250250 extern int scan_unevictable_register_node(struct node *node);
251251 extern void scan_unevictable_unregister_node(struct node *node);
include/linux/sysctl.h+9−10
@@ -29,7 +29,6 @@ · 28 unmodified lines
2929 #include <linux/types.h>
3030 #include <linux/compiler.h>
3131
32−struct file;
3332 struct completion;
3433
3534 #define CTL_MAXNAME 10 /* how many path components do we allow in a
@@ -977,25 +976,25 @@ typedef int ctl_handler (struct ctl_table *table, · 941 unmodified lines
977976 void __user *oldval, size_t __user *oldlenp,
978977 void __user *newval, size_t newlen);
979978
980−typedef int proc_handler (struct ctl_table *ctl, int write, struct file * filp,
979+typedef int proc_handler (struct ctl_table *ctl, int write,
981980 void __user *buffer, size_t *lenp, loff_t *ppos);
982981
983−extern int proc_dostring(struct ctl_table *, int, struct file *,
982+extern int proc_dostring(struct ctl_table *, int,
984983 void __user *, size_t *, loff_t *);
985−extern int proc_dointvec(struct ctl_table *, int, struct file *,
984+extern int proc_dointvec(struct ctl_table *, int,
986985 void __user *, size_t *, loff_t *);
987−extern int proc_dointvec_minmax(struct ctl_table *, int, struct file *,
986+extern int proc_dointvec_minmax(struct ctl_table *, int,
988987 void __user *, size_t *, loff_t *);
989−extern int proc_dointvec_jiffies(struct ctl_table *, int, struct file *,
988+extern int proc_dointvec_jiffies(struct ctl_table *, int,
990989 void __user *, size_t *, loff_t *);
991−extern int proc_dointvec_userhz_jiffies(struct ctl_table *, int, struct file *,
990+extern int proc_dointvec_userhz_jiffies(struct ctl_table *, int,
992991 void __user *, size_t *, loff_t *);
993−extern int proc_dointvec_ms_jiffies(struct ctl_table *, int, struct file *,
992+extern int proc_dointvec_ms_jiffies(struct ctl_table *, int,
994993 void __user *, size_t *, loff_t *);
995−extern int proc_doulongvec_minmax(struct ctl_table *, int, struct file *,
994+extern int proc_doulongvec_minmax(struct ctl_table *, int,
996995 void __user *, size_t *, loff_t *);
997996 extern int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int,
998− struct file *, void __user *, size_t *, loff_t *);
997+ void __user *, size_t *, loff_t *);
999998
1000999 extern int do_sysctl (int __user *name, int nlen,
10011000 void __user *oldval, size_t __user *oldlenp,
include/linux/writeback.h+5−6
@@ -110,21 +110,20 @@ extern int laptop_mode; · 109 unmodified lines
110110 extern unsigned long determine_dirtyable_memory(void);
111111
112112 extern int dirty_background_ratio_handler(struct ctl_table *table, int write,
113− struct file *filp, void __user *buffer, size_t *lenp,
113+ void __user *buffer, size_t *lenp,
114114 loff_t *ppos);
115115 extern int dirty_background_bytes_handler(struct ctl_table *table, int write,
116− struct file *filp, void __user *buffer, size_t *lenp,
116+ void __user *buffer, size_t *lenp,
117117 loff_t *ppos);
118118 extern int dirty_ratio_handler(struct ctl_table *table, int write,
119− struct file *filp, void __user *buffer, size_t *lenp,
119+ void __user *buffer, size_t *lenp,
120120 loff_t *ppos);
121121 extern int dirty_bytes_handler(struct ctl_table *table, int write,
122− struct file *filp, void __user *buffer, size_t *lenp,
122+ void __user *buffer, size_t *lenp,
123123 loff_t *ppos);
124124
125125 struct ctl_table;
126−struct file;
127−int dirty_writeback_centisecs_handler(struct ctl_table *, int, struct file *,
126+int dirty_writeback_centisecs_handler(struct ctl_table *, int,
128127 void __user *, size_t *, loff_t *);
129128
130129 void get_dirty_limits(unsigned long *pbackground, unsigned long *pdirty,
include/net/ip.h+1−1
@@ -399,7 +399,7 @@ extern void ip_local_error(struct sock *sk, int err, __be32 daddr, __be16 dport, · 398 unmodified lines
399399 * fed into the routing cache should use these handlers.
400400 */
401401 int ipv4_doint_and_flush(ctl_table *ctl, int write,
402− struct file* filp, void __user *buffer,
402+ void __user *buffer,
403403 size_t *lenp, loff_t *ppos);
404404 int ipv4_doint_and_flush_strategy(ctl_table *table,
405405 void __user *oldval, size_t __user *oldlenp,
include/net/ndisc.h+0−2
@@ -55,7 +55,6 @@ enum { · 54 unmodified lines
5555 #include <net/neighbour.h>
5656
5757 struct ctl_table;
58−struct file;
5958 struct inet6_dev;
6059 struct net_device;
6160 struct net_proto_family;
@@ -139,7 +138,6 @@ extern int igmp6_event_report(struct sk_buff *skb); · 77 unmodified lines
139138 #ifdef CONFIG_SYSCTL
140139 extern int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl,
141140 int write,
142− struct file * filp,
143141 void __user *buffer,
144142 size_t *lenp,
145143 loff_t *ppos);
ipc/ipc_sysctl.c+8−8
@@ -27,18 +27,18 @@ static void *get_ipc(ctl_table *table) · 26 unmodified lines
2727 }
2828
2929 #ifdef CONFIG_PROC_SYSCTL
30−static int proc_ipc_dointvec(ctl_table *table, int write, struct file *filp,
30+static int proc_ipc_dointvec(ctl_table *table, int write,
3131 void __user *buffer, size_t *lenp, loff_t *ppos)
3232 {
3333 struct ctl_table ipc_table;
3434 memcpy(&ipc_table, table, sizeof(ipc_table));
3535 ipc_table.data = get_ipc(table);
3636
37− return proc_dointvec(&ipc_table, write, filp, buffer, lenp, ppos);
37+ return proc_dointvec(&ipc_table, write, buffer, lenp, ppos);
3838 }
3939
4040 static int proc_ipc_callback_dointvec(ctl_table *table, int write,
41− struct file *filp, void __user *buffer, size_t *lenp, loff_t *ppos)
41+ void __user *buffer, size_t *lenp, loff_t *ppos)
4242 {
4343 struct ctl_table ipc_table;
4444 size_t lenp_bef = *lenp;
@@ -47,7 +47,7 @@ static int proc_ipc_callback_dointvec(ctl_table *table, int write, · 2 unmodified lines
4747 memcpy(&ipc_table, table, sizeof(ipc_table));
4848 ipc_table.data = get_ipc(table);
4949
50− rc = proc_dointvec(&ipc_table, write, filp, buffer, lenp, ppos);
50+ rc = proc_dointvec(&ipc_table, write, buffer, lenp, ppos);
5151
5252 if (write && !rc && lenp_bef == *lenp)
5353 /*
@@ -61,13 +61,13 @@ static int proc_ipc_callback_dointvec(ctl_table *table, int write, · 7 unmodified lines
6161 }
6262
6363 static int proc_ipc_doulongvec_minmax(ctl_table *table, int write,
64− struct file *filp, void __user *buffer, size_t *lenp, loff_t *ppos)
64+ void __user *buffer, size_t *lenp, loff_t *ppos)
6565 {
6666 struct ctl_table ipc_table;
6767 memcpy(&ipc_table, table, sizeof(ipc_table));
6868 ipc_table.data = get_ipc(table);
6969
70− return proc_doulongvec_minmax(&ipc_table, write, filp, buffer,
70+ return proc_doulongvec_minmax(&ipc_table, write, buffer,
7171 lenp, ppos);
7272 }
7373
@@ -95,7 +95,7 @@ static void ipc_auto_callback(int val) · 21 unmodified lines
9595 }
9696
9797 static int proc_ipcauto_dointvec_minmax(ctl_table *table, int write,
98− struct file *filp, void __user *buffer, size_t *lenp, loff_t *ppos)
98+ void __user *buffer, size_t *lenp, loff_t *ppos)
9999 {
100100 struct ctl_table ipc_table;
101101 size_t lenp_bef = *lenp;
@@ -106,7 +106,7 @@ static int proc_ipcauto_dointvec_minmax(ctl_table *table, int write, · 4 unmodified lines
106106 ipc_table.data = get_ipc(table);
107107 oldval = *((int *)(ipc_table.data));
108108
109− rc = proc_dointvec_minmax(&ipc_table, write, filp, buffer, lenp, ppos);
109+ rc = proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos);
110110
111111 if (write && !rc && lenp_bef == *lenp) {
112112 int newval = *((int *)(ipc_table.data));
ipc/mq_sysctl.c+4−4
@@ -31,24 +31,24 @@ static void *get_mq(ctl_table *table) · 30 unmodified lines
3131 return which;
3232 }
3333
34−static int proc_mq_dointvec(ctl_table *table, int write, struct file *filp,
34+static int proc_mq_dointvec(ctl_table *table, int write,
3535 void __user *buffer, size_t *lenp, loff_t *ppos)
3636 {
3737 struct ctl_table mq_table;
3838 memcpy(&mq_table, table, sizeof(mq_table));
3939 mq_table.data = get_mq(table);
4040
41− return proc_dointvec(&mq_table, write, filp, buffer, lenp, ppos);
41+ return proc_dointvec(&mq_table, write, buffer, lenp, ppos);
4242 }
4343
4444 static int proc_mq_dointvec_minmax(ctl_table *table, int write,
45− struct file *filp, void __user *buffer, size_t *lenp, loff_t *ppos)
45+ void __user *buffer, size_t *lenp, loff_t *ppos)
4646 {
4747 struct ctl_table mq_table;
4848 memcpy(&mq_table, table, sizeof(mq_table));
4949 mq_table.data = get_mq(table);
5050
51− return proc_dointvec_minmax(&mq_table, write, filp, buffer,
51+ return proc_dointvec_minmax(&mq_table, write, buffer,
5252 lenp, ppos);
5353 }
5454 #else
kernel/hung_task.c+2−2
@@ -171,12 +171,12 @@ static unsigned long timeout_jiffies(unsigned long timeout) · 170 unmodified lines
171171 * Process updating of timeout sysctl
172172 */
173173 int proc_dohung_task_timeout_secs(struct ctl_table *table, int write,
174− struct file *filp, void __user *buffer,
174+ void __user *buffer,
175175 size_t *lenp, loff_t *ppos)
176176 {
177177 int ret;
178178
179− ret = proc_doulongvec_minmax(table, write, filp, buffer, lenp, ppos);
179+ ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos);
180180
181181 if (ret || !write)
182182 goto out;
kernel/sched.c+2−2
@@ -10312,7 +10312,7 @@ static int sched_rt_global_constraints(void) · 10311 unmodified lines
1031210312 #endif /* CONFIG_RT_GROUP_SCHED */
1031310313
1031410314 int sched_rt_handler(struct ctl_table *table, int write,
10315− struct file *filp, void __user *buffer, size_t *lenp,
10315+ void __user *buffer, size_t *lenp,
1031610316 loff_t *ppos)
1031710317 {
1031810318 int ret;
@@ -10323,7 +10323,7 @@ int sched_rt_handler(struct ctl_table *table, int write, · 4 unmodified lines
1032310323 old_period = sysctl_sched_rt_period;
1032410324 old_runtime = sysctl_sched_rt_runtime;
1032510325
10326− ret = proc_dointvec(table, write, filp, buffer, lenp, ppos);
10326+ ret = proc_dointvec(table, write, buffer, lenp, ppos);
1032710327
1032810328 if (!ret && write) {
1032910329 ret = sched_rt_global_constraints();
kernel/sched_fair.c+2−2
@@ -384,10 +384,10 @@ static struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq) · 383 unmodified lines
384384
385385 #ifdef CONFIG_SCHED_DEBUG
386386 int sched_nr_latency_handler(struct ctl_table *table, int write,
387− struct file *filp, void __user *buffer, size_t *lenp,
387+ void __user *buffer, size_t *lenp,
388388 loff_t *ppos)
389389 {
390− int ret = proc_dointvec_minmax(table, write, filp, buffer, lenp, ppos);
390+ int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
391391
392392 if (ret || !write)
393393 return ret;
kernel/slow-work.c+6−6
@@ -26,10 +26,10 @@ static void slow_work_cull_timeout(unsigned long); · 25 unmodified lines
2626 static void slow_work_oom_timeout(unsigned long);
2727
2828 #ifdef CONFIG_SYSCTL
29−static int slow_work_min_threads_sysctl(struct ctl_table *, int, struct file *,
29+static int slow_work_min_threads_sysctl(struct ctl_table *, int,
3030 void __user *, size_t *, loff_t *);
3131
32−static int slow_work_max_threads_sysctl(struct ctl_table *, int , struct file *,
32+static int slow_work_max_threads_sysctl(struct ctl_table *, int ,
3333 void __user *, size_t *, loff_t *);
3434 #endif
3535
@@ -493,10 +493,10 @@ static void slow_work_oom_timeout(unsigned long data) · 457 unmodified lines
493493 * Handle adjustment of the minimum number of threads
494494 */
495495 static int slow_work_min_threads_sysctl(struct ctl_table *table, int write,
496− struct file *filp, void __user *buffer,
496+ void __user *buffer,
497497 size_t *lenp, loff_t *ppos)
498498 {
499− int ret = proc_dointvec_minmax(table, write, filp, buffer, lenp, ppos);
499+ int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
500500 int n;
501501
502502 if (ret == 0) {
@@ -521,10 +521,10 @@ static int slow_work_min_threads_sysctl(struct ctl_table *table, int write, · 18 unmodified lines
521521 * Handle adjustment of the maximum number of threads
522522 */
523523 static int slow_work_max_threads_sysctl(struct ctl_table *table, int write,
524− struct file *filp, void __user *buffer,
524+ void __user *buffer,
525525 size_t *lenp, loff_t *ppos)
526526 {
527− int ret = proc_dointvec_minmax(table, write, filp, buffer, lenp, ppos);
527+ int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
528528 int n;
529529
530530 if (ret == 0) {
kernel/softlockup.c+2−2
@@ -90,11 +90,11 @@ void touch_all_softlockup_watchdogs(void) · 89 unmodified lines
9090 EXPORT_SYMBOL(touch_all_softlockup_watchdogs);
9191
9292 int proc_dosoftlockup_thresh(struct ctl_table *table, int write,
93− struct file *filp, void __user *buffer,
93+ void __user *buffer,
9494 size_t *lenp, loff_t *ppos)
9595 {
9696 touch_all_softlockup_watchdogs();
97− return proc_dointvec_minmax(table, write, filp, buffer, lenp, ppos);
97+ return proc_dointvec_minmax(table, write, buffer, lenp, ppos);
9898 }
9999
100100 /*
kernel/sysctl.c+33−45
@@ -163,9 +163,9 @@ extern int max_lock_depth; · 162 unmodified lines
163163 #endif
164164
165165 #ifdef CONFIG_PROC_SYSCTL
166−static int proc_do_cad_pid(struct ctl_table *table, int write, struct file *filp,
166+static int proc_do_cad_pid(struct ctl_table *table, int write,
167167 void __user *buffer, size_t *lenp, loff_t *ppos);
168−static int proc_taint(struct ctl_table *table, int write, struct file *filp,
168+static int proc_taint(struct ctl_table *table, int write,
169169 void __user *buffer, size_t *lenp, loff_t *ppos);
170170 #endif
171171
@@ -2226,7 +2226,7 @@ void sysctl_head_put(struct ctl_table_header *head) · 2054 unmodified lines
22262226 #ifdef CONFIG_PROC_SYSCTL
22272227
22282228 static int _proc_do_string(void* data, int maxlen, int write,
2229− struct file *filp, void __user *buffer,
2229+ void __user *buffer,
22302230 size_t *lenp, loff_t *ppos)
22312231 {
22322232 size_t len;
@@ -2287,7 +2287,6 @@ static int _proc_do_string(void* data, int maxlen, int write, · 54 unmodified lines
22872287 * proc_dostring - read a string sysctl
22882288 * @table: the sysctl table
22892289 * @write: %TRUE if this is a write to the sysctl file
2290− * @filp: the file structure
22912290 * @buffer: the user buffer
22922291 * @lenp: the size of the user buffer
22932292 * @ppos: file position
@@ -2301,10 +2300,10 @@ static int _proc_do_string(void* data, int maxlen, int write, · 7 unmodified lines
23012300 *
23022301 * Returns 0 on success.
23032302 */
2304−int proc_dostring(struct ctl_table *table, int write, struct file *filp,
2303+int proc_dostring(struct ctl_table *table, int write,
23052304 void __user *buffer, size_t *lenp, loff_t *ppos)
23062305 {
2307− return _proc_do_string(table->data, table->maxlen, write, filp,
2306+ return _proc_do_string(table->data, table->maxlen, write,
23082307 buffer, lenp, ppos);
23092308 }
23102309
@@ -2329,7 +2328,7 @@ static int do_proc_dointvec_conv(int *negp, unsigned long *lvalp, · 18 unmodified lines
23292328 }
23302329
23312330 static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,
2332− int write, struct file *filp, void __user *buffer,
2331+ int write, void __user *buffer,
23332332 size_t *lenp, loff_t *ppos,
23342333 int (*conv)(int *negp, unsigned long *lvalp, int *valp,
23352334 int write, void *data),
@@ -2436,13 +2435,13 @@ static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table, · 100 unmodified lines
24362435 #undef TMPBUFLEN
24372436 }
24382437
2439−static int do_proc_dointvec(struct ctl_table *table, int write, struct file *filp,
2438+static int do_proc_dointvec(struct ctl_table *table, int write,
24402439 void __user *buffer, size_t *lenp, loff_t *ppos,
24412440 int (*conv)(int *negp, unsigned long *lvalp, int *valp,
24422441 int write, void *data),
24432442 void *data)
24442443 {
2445− return __do_proc_dointvec(table->data, table, write, filp,
2444+ return __do_proc_dointvec(table->data, table, write,
24462445 buffer, lenp, ppos, conv, data);
24472446 }
24482447
@@ -2450,7 +2449,6 @@ static int do_proc_dointvec(struct ctl_table *table, int write, struct file *fil · 1 unmodified line
24502449 * proc_dointvec - read a vector of integers
24512450 * @table: the sysctl table
24522451 * @write: %TRUE if this is a write to the sysctl file
2453− * @filp: the file structure
24542452 * @buffer: the user buffer
24552453 * @lenp: the size of the user buffer
24562454 * @ppos: file position
@@ -2460,10 +2458,10 @@ static int do_proc_dointvec(struct ctl_table *table, int write, struct file *fil · 3 unmodified lines
24602458 *
24612459 * Returns 0 on success.
24622460 */
2463−int proc_dointvec(struct ctl_table *table, int write, struct file *filp,
2461+int proc_dointvec(struct ctl_table *table, int write,
24642462 void __user *buffer, size_t *lenp, loff_t *ppos)
24652463 {
2466− return do_proc_dointvec(table,write,filp,buffer,lenp,ppos,
2464+ return do_proc_dointvec(table,write,buffer,lenp,ppos,
24672465 NULL,NULL);
24682466 }
24692467
@@ -2471,7 +2469,7 @@ int proc_dointvec(struct ctl_table *table, int write, struct file *filp, · 1 unmodified line
24712469 * Taint values can only be increased
24722470 * This means we can safely use a temporary.
24732471 */
2474−static int proc_taint(struct ctl_table *table, int write, struct file *filp,
2472+static int proc_taint(struct ctl_table *table, int write,
24752473 void __user *buffer, size_t *lenp, loff_t *ppos)
24762474 {
24772475 struct ctl_table t;
@@ -2483,7 +2481,7 @@ static int proc_taint(struct ctl_table *table, int write, struct file *filp, · 5 unmodified lines
24832481
24842482 t = *table;
24852483 t.data = &tmptaint;
2486− err = proc_doulongvec_minmax(&t, write, filp, buffer, lenp, ppos);
2484+ err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos);
24872485 if (err < 0)
24882486 return err;
24892487
@@ -2535,7 +2533,6 @@ static int do_proc_dointvec_minmax_conv(int *negp, unsigned long *lvalp, · 45 unmodified lines
25352533 * proc_dointvec_minmax - read a vector of integers with min/max values
25362534 * @table: the sysctl table
25372535 * @write: %TRUE if this is a write to the sysctl file
2538− * @filp: the file structure
25392536 * @buffer: the user buffer
25402537 * @lenp: the size of the user buffer
25412538 * @ppos: file position
@@ -2548,19 +2545,18 @@ static int do_proc_dointvec_minmax_conv(int *negp, unsigned long *lvalp, · 6 unmodified lines
25482545 *
25492546 * Returns 0 on success.
25502547 */
2551−int proc_dointvec_minmax(struct ctl_table *table, int write, struct file *filp,
2548+int proc_dointvec_minmax(struct ctl_table *table, int write,
25522549 void __user *buffer, size_t *lenp, loff_t *ppos)
25532550 {
25542551 struct do_proc_dointvec_minmax_conv_param param = {
25552552 .min = (int *) table->extra1,
25562553 .max = (int *) table->extra2,
25572554 };
2558− return do_proc_dointvec(table, write, filp, buffer, lenp, ppos,
2555+ return do_proc_dointvec(table, write, buffer, lenp, ppos,
25592556 do_proc_dointvec_minmax_conv, &param);
25602557 }
25612558
25622559 static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table, int write,
2563− struct file *filp,
25642560 void __user *buffer,
25652561 size_t *lenp, loff_t *ppos,
25662562 unsigned long convmul,
@@ -2665,21 +2661,19 @@ static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table, int · 98 unmodified lines
26652661 }
26662662
26672663 static int do_proc_doulongvec_minmax(struct ctl_table *table, int write,
2668− struct file *filp,
26692664 void __user *buffer,
26702665 size_t *lenp, loff_t *ppos,
26712666 unsigned long convmul,
26722667 unsigned long convdiv)
26732668 {
26742669 return __do_proc_doulongvec_minmax(table->data, table, write,
2675− filp, buffer, lenp, ppos, convmul, convdiv);
2670+ buffer, lenp, ppos, convmul, convdiv);
26762671 }
26772672
26782673 /**
26792674 * proc_doulongvec_minmax - read a vector of long integers with min/max values
26802675 * @table: the sysctl table
26812676 * @write: %TRUE if this is a write to the sysctl file
2682− * @filp: the file structure
26832677 * @buffer: the user buffer
26842678 * @lenp: the size of the user buffer
26852679 * @ppos: file position
@@ -2692,17 +2686,16 @@ static int do_proc_doulongvec_minmax(struct ctl_table *table, int write, · 6 unmodified lines
26922686 *
26932687 * Returns 0 on success.
26942688 */
2695−int proc_doulongvec_minmax(struct ctl_table *table, int write, struct file *filp,
2689+int proc_doulongvec_minmax(struct ctl_table *table, int write,
26962690 void __user *buffer, size_t *lenp, loff_t *ppos)
26972691 {
2698− return do_proc_doulongvec_minmax(table, write, filp, buffer, lenp, ppos, 1l, 1l);
2692+ return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l);
26992693 }
27002694
27012695 /**
27022696 * proc_doulongvec_ms_jiffies_minmax - read a vector of millisecond values with min/max values
27032697 * @table: the sysctl table
27042698 * @write: %TRUE if this is a write to the sysctl file
2705− * @filp: the file structure
27062699 * @buffer: the user buffer
27072700 * @lenp: the size of the user buffer
27082701 * @ppos: file position
@@ -2717,11 +2710,10 @@ int proc_doulongvec_minmax(struct ctl_table *table, int write, struct file *filp · 8 unmodified lines
27172710 * Returns 0 on success.
27182711 */
27192712 int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int write,
2720− struct file *filp,
27212713 void __user *buffer,
27222714 size_t *lenp, loff_t *ppos)
27232715 {
2724− return do_proc_doulongvec_minmax(table, write, filp, buffer,
2716+ return do_proc_doulongvec_minmax(table, write, buffer,
27252717 lenp, ppos, HZ, 1000l);
27262718 }
27272719
@@ -2797,7 +2789,6 @@ static int do_proc_dointvec_ms_jiffies_conv(int *negp, unsigned long *lvalp, · 69 unmodified lines
27972789 * proc_dointvec_jiffies - read a vector of integers as seconds
27982790 * @table: the sysctl table
27992791 * @write: %TRUE if this is a write to the sysctl file
2800− * @filp: the file structure
28012792 * @buffer: the user buffer
28022793 * @lenp: the size of the user buffer
28032794 * @ppos: file position
@@ -2809,10 +2800,10 @@ static int do_proc_dointvec_ms_jiffies_conv(int *negp, unsigned long *lvalp, · 5 unmodified lines
28092800 *
28102801 * Returns 0 on success.
28112802 */
2812−int proc_dointvec_jiffies(struct ctl_table *table, int write, struct file *filp,
2803+int proc_dointvec_jiffies(struct ctl_table *table, int write,
28132804 void __user *buffer, size_t *lenp, loff_t *ppos)
28142805 {
2815− return do_proc_dointvec(table,write,filp,buffer,lenp,ppos,
2806+ return do_proc_dointvec(table,write,buffer,lenp,ppos,
28162807 do_proc_dointvec_jiffies_conv,NULL);
28172808 }
28182809
@@ -2820,7 +2811,6 @@ int proc_dointvec_jiffies(struct ctl_table *table, int write, struct file *filp, · 1 unmodified line
28202811 * proc_dointvec_userhz_jiffies - read a vector of integers as 1/USER_HZ seconds
28212812 * @table: the sysctl table
28222813 * @write: %TRUE if this is a write to the sysctl file
2823− * @filp: the file structure
28242814 * @buffer: the user buffer
28252815 * @lenp: the size of the user buffer
28262816 * @ppos: pointer to the file position
@@ -2832,10 +2822,10 @@ int proc_dointvec_jiffies(struct ctl_table *table, int write, struct file *filp, · 5 unmodified lines
28322822 *
28332823 * Returns 0 on success.
28342824 */
2835−int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write, struct file *filp,
2825+int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write,
28362826 void __user *buffer, size_t *lenp, loff_t *ppos)
28372827 {
2838− return do_proc_dointvec(table,write,filp,buffer,lenp,ppos,
2828+ return do_proc_dointvec(table,write,buffer,lenp,ppos,
28392829 do_proc_dointvec_userhz_jiffies_conv,NULL);
28402830 }
28412831
@@ -2843,7 +2833,6 @@ int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write, struct file · 1 unmodified line
28432833 * proc_dointvec_ms_jiffies - read a vector of integers as 1 milliseconds
28442834 * @table: the sysctl table
28452835 * @write: %TRUE if this is a write to the sysctl file
2846− * @filp: the file structure
28472836 * @buffer: the user buffer
28482837 * @lenp: the size of the user buffer
28492838 * @ppos: file position
@@ -2856,14 +2845,14 @@ int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write, struct file · 6 unmodified lines
28562845 *
28572846 * Returns 0 on success.
28582847 */
2859−int proc_dointvec_ms_jiffies(struct ctl_table *table, int write, struct file *filp,
2848+int proc_dointvec_ms_jiffies(struct ctl_table *table, int write,
28602849 void __user *buffer, size_t *lenp, loff_t *ppos)
28612850 {
2862− return do_proc_dointvec(table, write, filp, buffer, lenp, ppos,
2851+ return do_proc_dointvec(table, write, buffer, lenp, ppos,
28632852 do_proc_dointvec_ms_jiffies_conv, NULL);
28642853 }
28652854
2866−static int proc_do_cad_pid(struct ctl_table *table, int write, struct file *filp,
2855+static int proc_do_cad_pid(struct ctl_table *table, int write,
28672856 void __user *buffer, size_t *lenp, loff_t *ppos)
28682857 {
28692858 struct pid *new_pid;
@@ -2872,7 +2861,7 @@ static int proc_do_cad_pid(struct ctl_table *table, int write, struct file *filp · 2 unmodified lines
28722861
28732862 tmp = pid_vnr(cad_pid);
28742863
2875− r = __do_proc_dointvec(&tmp, table, write, filp, buffer,
2864+ r = __do_proc_dointvec(&tmp, table, write, buffer,
28762865 lenp, ppos, NULL, NULL);
28772866 if (r || !write)
28782867 return r;
@@ -2887,50 +2876,49 @@ static int proc_do_cad_pid(struct ctl_table *table, int write, struct file *filp · 8 unmodified lines
28872876
28882877 #else /* CONFIG_PROC_FS */
28892878
2890−int proc_dostring(struct ctl_table *table, int write, struct file *filp,
2879+int proc_dostring(struct ctl_table *table, int write,
28912880 void __user *buffer, size_t *lenp, loff_t *ppos)
28922881 {
28932882 return -ENOSYS;
28942883 }
28952884
2896−int proc_dointvec(struct ctl_table *table, int write, struct file *filp,
2885+int proc_dointvec(struct ctl_table *table, int write,
28972886 void __user *buffer, size_t *lenp, loff_t *ppos)
28982887 {
28992888 return -ENOSYS;
29002889 }
29012890
2902−int proc_dointvec_minmax(struct ctl_table *table, int write, struct file *filp,
2891+int proc_dointvec_minmax(struct ctl_table *table, int write,
29032892 void __user *buffer, size_t *lenp, loff_t *ppos)
29042893 {
29052894 return -ENOSYS;
29062895 }
29072896
2908−int proc_dointvec_jiffies(struct ctl_table *table, int write, struct file *filp,
2897+int proc_dointvec_jiffies(struct ctl_table *table, int write,
29092898 void __user *buffer, size_t *lenp, loff_t *ppos)
29102899 {
29112900 return -ENOSYS;
29122901 }
29132902
2914−int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write, struct file *filp,
2903+int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write,
29152904 void __user *buffer, size_t *lenp, loff_t *ppos)
29162905 {
29172906 return -ENOSYS;
29182907 }
29192908
2920−int proc_dointvec_ms_jiffies(struct ctl_table *table, int write, struct file *filp,
2909+int proc_dointvec_ms_jiffies(struct ctl_table *table, int write,
29212910 void __user *buffer, size_t *lenp, loff_t *ppos)
29222911 {
29232912 return -ENOSYS;
29242913 }
29252914
2926−int proc_doulongvec_minmax(struct ctl_table *table, int write, struct file *filp,
2915+int proc_doulongvec_minmax(struct ctl_table *table, int write,
29272916 void __user *buffer, size_t *lenp, loff_t *ppos)
29282917 {
29292918 return -ENOSYS;
29302919 }
29312920
29322921 int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int write,
2933− struct file *filp,
29342922 void __user *buffer,
29352923 size_t *lenp, loff_t *ppos)
29362924 {
kernel/trace/ftrace.c+2−2
@@ -3015,7 +3015,7 @@ int unregister_ftrace_function(struct ftrace_ops *ops) · 3014 unmodified lines
30153015
30163016 int
30173017 ftrace_enable_sysctl(struct ctl_table *table, int write,
3018− struct file *file, void __user *buffer, size_t *lenp,
3018+ void __user *buffer, size_t *lenp,
30193019 loff_t *ppos)
30203020 {
30213021 int ret;
@@ -3025,7 +3025,7 @@ ftrace_enable_sysctl(struct ctl_table *table, int write, · 3 unmodified lines
30253025
30263026 mutex_lock(&ftrace_lock);
30273027
3028− ret = proc_dointvec(table, write, file, buffer, lenp, ppos);
3028+ ret = proc_dointvec(table, write, buffer, lenp, ppos);
30293029
30303030 if (ret || !write || (last_ftrace_enabled == !!ftrace_enabled))
30313031 goto out;
kernel/trace/trace_stack.c+2−2
@@ -296,14 +296,14 @@ static const struct file_operations stack_trace_fops = { · 295 unmodified lines
296296
297297 int
298298 stack_trace_sysctl(struct ctl_table *table, int write,
299− struct file *file, void __user *buffer, size_t *lenp,
299+ void __user *buffer, size_t *lenp,
300300 loff_t *ppos)
301301 {
302302 int ret;
303303
304304 mutex_lock(&stack_sysctl_mutex);
305305
306− ret = proc_dointvec(table, write, file, buffer, lenp, ppos);
306+ ret = proc_dointvec(table, write, buffer, lenp, ppos);
307307
308308 if (ret || !write ||
309309 (last_stack_tracer_enabled == !!stack_tracer_enabled))
kernel/utsname_sysctl.c+2−2
@@ -42,14 +42,14 @@ static void put_uts(ctl_table *table, int write, void *which) · 41 unmodified lines
4242 * Special case of dostring for the UTS structure. This has locks
4343 * to observe. Should this be in kernel/sys.c ????
4444 */
45−static int proc_do_uts_string(ctl_table *table, int write, struct file *filp,
45+static int proc_do_uts_string(ctl_table *table, int write,
4646 void __user *buffer, size_t *lenp, loff_t *ppos)
4747 {
4848 struct ctl_table uts_table;
4949 int r;
5050 memcpy(&uts_table, table, sizeof(uts_table));
5151 uts_table.data = get_uts(table, write);
52− r = proc_dostring(&uts_table,write,filp,buffer,lenp, ppos);
52+ r = proc_dostring(&uts_table,write,buffer,lenp, ppos);
5353 put_uts(table, write, uts_table.data);
5454 return r;
5555 }
mm/hugetlb.c+6−6
@@ -1537,7 +1537,7 @@ static unsigned int cpuset_mems_nr(unsigned int *array) · 1536 unmodified lines
15371537
15381538 #ifdef CONFIG_SYSCTL
15391539 int hugetlb_sysctl_handler(struct ctl_table *table, int write,
1540− struct file *file, void __user *buffer,
1540+ void __user *buffer,
15411541 size_t *length, loff_t *ppos)
15421542 {
15431543 struct hstate *h = &default_hstate;
@@ -1548,7 +1548,7 @@ int hugetlb_sysctl_handler(struct ctl_table *table, int write, · 4 unmodified lines
15481548
15491549 table->data = &tmp;
15501550 table->maxlen = sizeof(unsigned long);
1551− proc_doulongvec_minmax(table, write, file, buffer, length, ppos);
1551+ proc_doulongvec_minmax(table, write, buffer, length, ppos);
15521552
15531553 if (write)
15541554 h->max_huge_pages = set_max_huge_pages(h, tmp);
@@ -1557,10 +1557,10 @@ int hugetlb_sysctl_handler(struct ctl_table *table, int write, · 2 unmodified lines
15571557 }
15581558
15591559 int hugetlb_treat_movable_handler(struct ctl_table *table, int write,
1560− struct file *file, void __user *buffer,
1560+ void __user *buffer,
15611561 size_t *length, loff_t *ppos)
15621562 {
1563− proc_dointvec(table, write, file, buffer, length, ppos);
1563+ proc_dointvec(table, write, buffer, length, ppos);
15641564 if (hugepages_treat_as_movable)
15651565 htlb_alloc_mask = GFP_HIGHUSER_MOVABLE;
15661566 else
@@ -1569,7 +1569,7 @@ int hugetlb_treat_movable_handler(struct ctl_table *table, int write, · 2 unmodified lines
15691569 }
15701570
15711571 int hugetlb_overcommit_handler(struct ctl_table *table, int write,
1572− struct file *file, void __user *buffer,
1572+ void __user *buffer,
15731573 size_t *length, loff_t *ppos)
15741574 {
15751575 struct hstate *h = &default_hstate;
@@ -1580,7 +1580,7 @@ int hugetlb_overcommit_handler(struct ctl_table *table, int write, · 4 unmodified lines
15801580
15811581 table->data = &tmp;
15821582 table->maxlen = sizeof(unsigned long);
1583− proc_doulongvec_minmax(table, write, file, buffer, length, ppos);
1583+ proc_doulongvec_minmax(table, write, buffer, length, ppos);
15841584
15851585 if (write) {
15861586 spin_lock(&hugetlb_lock);
mm/page-writeback.c+10−10
@@ -155,37 +155,37 @@ static void update_completion_period(void) · 154 unmodified lines
155155 }
156156
157157 int dirty_background_ratio_handler(struct ctl_table *table, int write,
158− struct file *filp, void __user *buffer, size_t *lenp,
158+ void __user *buffer, size_t *lenp,
159159 loff_t *ppos)
160160 {
161161 int ret;
162162
163− ret = proc_dointvec_minmax(table, write, filp, buffer, lenp, ppos);
163+ ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
164164 if (ret == 0 && write)
165165 dirty_background_bytes = 0;
166166 return ret;
167167 }
168168
169169 int dirty_background_bytes_handler(struct ctl_table *table, int write,
170− struct file *filp, void __user *buffer, size_t *lenp,
170+ void __user *buffer, size_t *lenp,
171171 loff_t *ppos)
172172 {
173173 int ret;
174174
175− ret = proc_doulongvec_minmax(table, write, filp, buffer, lenp, ppos);
175+ ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos);
176176 if (ret == 0 && write)
177177 dirty_background_ratio = 0;
178178 return ret;
179179 }
180180
181181 int dirty_ratio_handler(struct ctl_table *table, int write,
182− struct file *filp, void __user *buffer, size_t *lenp,
182+ void __user *buffer, size_t *lenp,
183183 loff_t *ppos)
184184 {
185185 int old_ratio = vm_dirty_ratio;
186186 int ret;
187187
188− ret = proc_dointvec_minmax(table, write, filp, buffer, lenp, ppos);
188+ ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
189189 if (ret == 0 && write && vm_dirty_ratio != old_ratio) {
190190 update_completion_period();
191191 vm_dirty_bytes = 0;
@@ -195,13 +195,13 @@ int dirty_ratio_handler(struct ctl_table *table, int write, · 3 unmodified lines
195195
196196
197197 int dirty_bytes_handler(struct ctl_table *table, int write,
198− struct file *filp, void __user *buffer, size_t *lenp,
198+ void __user *buffer, size_t *lenp,
199199 loff_t *ppos)
200200 {
201201 unsigned long old_bytes = vm_dirty_bytes;
202202 int ret;
203203
204− ret = proc_doulongvec_minmax(table, write, filp, buffer, lenp, ppos);
204+ ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos);
205205 if (ret == 0 && write && vm_dirty_bytes != old_bytes) {
206206 update_completion_period();
207207 vm_dirty_ratio = 0;
@@ -686,9 +686,9 @@ static DEFINE_TIMER(laptop_mode_wb_timer, laptop_timer_fn, 0, 0); · 478 unmodified lines
686686 * sysctl handler for /proc/sys/vm/dirty_writeback_centisecs
687687 */
688688 int dirty_writeback_centisecs_handler(ctl_table *table, int write,
689− struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
689+ void __user *buffer, size_t *length, loff_t *ppos)
690690 {
691− proc_dointvec(table, write, file, buffer, length, ppos);
691+ proc_dointvec(table, write, buffer, length, ppos);
692692 return 0;
693693 }
694694
mm/page_alloc.c+12−12
@@ -2373,7 +2373,7 @@ early_param("numa_zonelist_order", setup_numa_zonelist_order); · 2372 unmodified lines
23732373 * sysctl handler for numa_zonelist_order
23742374 */
23752375 int numa_zonelist_order_handler(ctl_table *table, int write,
2376− struct file *file, void __user *buffer, size_t *length,
2376+ void __user *buffer, size_t *length,
23772377 loff_t *ppos)
23782378 {
23792379 char saved_string[NUMA_ZONELIST_ORDER_LEN];
@@ -2382,7 +2382,7 @@ int numa_zonelist_order_handler(ctl_table *table, int write, · 2 unmodified lines
23822382 if (write)
23832383 strncpy(saved_string, (char*)table->data,
23842384 NUMA_ZONELIST_ORDER_LEN);
2385− ret = proc_dostring(table, write, file, buffer, length, ppos);
2385+ ret = proc_dostring(table, write, buffer, length, ppos);
23862386 if (ret)
23872387 return ret;
23882388 if (write) {
@@ -4706,9 +4706,9 @@ module_init(init_per_zone_wmark_min) · 2317 unmodified lines
47064706 * changes.
47074707 */
47084708 int min_free_kbytes_sysctl_handler(ctl_table *table, int write,
4709− struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
4709+ void __user *buffer, size_t *length, loff_t *ppos)
47104710 {
4711− proc_dointvec(table, write, file, buffer, length, ppos);
4711+ proc_dointvec(table, write, buffer, length, ppos);
47124712 if (write)
47134713 setup_per_zone_wmarks();
47144714 return 0;
@@ -4716,12 +4716,12 @@ int min_free_kbytes_sysctl_handler(ctl_table *table, int write, · 1 unmodified line
47164716
47174717 #ifdef CONFIG_NUMA
47184718 int sysctl_min_unmapped_ratio_sysctl_handler(ctl_table *table, int write,
4719− struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
4719+ void __user *buffer, size_t *length, loff_t *ppos)
47204720 {
47214721 struct zone *zone;
47224722 int rc;
47234723
4724− rc = proc_dointvec_minmax(table, write, file, buffer, length, ppos);
4724+ rc = proc_dointvec_minmax(table, write, buffer, length, ppos);
47254725 if (rc)
47264726 return rc;
47274727
@@ -4732,12 +4732,12 @@ int sysctl_min_unmapped_ratio_sysctl_handler(ctl_table *table, int write, · 4 unmodified lines
47324732 }
47334733
47344734 int sysctl_min_slab_ratio_sysctl_handler(ctl_table *table, int write,
4735− struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
4735+ void __user *buffer, size_t *length, loff_t *ppos)
47364736 {
47374737 struct zone *zone;
47384738 int rc;
47394739
4740− rc = proc_dointvec_minmax(table, write, file, buffer, length, ppos);
4740+ rc = proc_dointvec_minmax(table, write, buffer, length, ppos);
47414741 if (rc)
47424742 return rc;
47434743
@@ -4758,9 +4758,9 @@ int sysctl_min_slab_ratio_sysctl_handler(ctl_table *table, int write, · 14 unmodified lines
47584758 * if in function of the boot time zone sizes.
47594759 */
47604760 int lowmem_reserve_ratio_sysctl_handler(ctl_table *table, int write,
4761− struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
4761+ void __user *buffer, size_t *length, loff_t *ppos)
47624762 {
4763− proc_dointvec_minmax(table, write, file, buffer, length, ppos);
4763+ proc_dointvec_minmax(table, write, buffer, length, ppos);
47644764 setup_per_zone_lowmem_reserve();
47654765 return 0;
47664766 }
@@ -4772,13 +4772,13 @@ int lowmem_reserve_ratio_sysctl_handler(ctl_table *table, int write, · 5 unmodified lines
47724772 */
47734773
47744774 int percpu_pagelist_fraction_sysctl_handler(ctl_table *table, int write,
4775− struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
4775+ void __user *buffer, size_t *length, loff_t *ppos)
47764776 {
47774777 struct zone *zone;
47784778 unsigned int cpu;
47794779 int ret;
47804780
4781− ret = proc_dointvec_minmax(table, write, file, buffer, length, ppos);
4781+ ret = proc_dointvec_minmax(table, write, buffer, length, ppos);
47824782 if (!write || (ret == -EINVAL))
47834783 return ret;
47844784 for_each_populated_zone(zone) {
mm/vmscan.c+2−2
@@ -2844,10 +2844,10 @@ static void scan_all_zones_unevictable_pages(void) · 2843 unmodified lines
28442844 unsigned long scan_unevictable_pages;
28452845
28462846 int scan_unevictable_handler(struct ctl_table *table, int write,
2847− struct file *file, void __user *buffer,
2847+ void __user *buffer,
28482848 size_t *length, loff_t *ppos)
28492849 {
2850− proc_doulongvec_minmax(table, write, file, buffer, length, ppos);
2850+ proc_doulongvec_minmax(table, write, buffer, length, ppos);
28512851
28522852 if (write && *(unsigned long *)table->data)
28532853 scan_all_zones_unevictable_pages();
net/bridge/br_netfilter.c+2−2
@@ -965,12 +965,12 @@ static struct nf_hook_ops br_nf_ops[] __read_mostly = { · 964 unmodified lines
965965
966966 #ifdef CONFIG_SYSCTL
967967 static
968−int brnf_sysctl_call_tables(ctl_table * ctl, int write, struct file *filp,
968+int brnf_sysctl_call_tables(ctl_table * ctl, int write,
969969 void __user * buffer, size_t * lenp, loff_t * ppos)
970970 {
971971 int ret;
972972
973− ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
973+ ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
974974
975975 if (write && *(int *)(ctl->data))
976976 *(int *)(ctl->data) = 1;
net/decnet/dn_dev.c+2−3
@@ -164,7 +164,7 @@ static int max_t3[] = { 8191 }; /* Must fit in 16 bits when multiplied by BCT3MU · 163 unmodified lines
164164 static int min_priority[1];
165165 static int max_priority[] = { 127 }; /* From DECnet spec */
166166
167−static int dn_forwarding_proc(ctl_table *, int, struct file *,
167+static int dn_forwarding_proc(ctl_table *, int,
168168 void __user *, size_t *, loff_t *);
169169 static int dn_forwarding_sysctl(ctl_table *table,
170170 void __user *oldval, size_t __user *oldlenp,
@@ -274,7 +274,6 @@ static void dn_dev_sysctl_unregister(struct dn_dev_parms *parms) · 103 unmodified lines
274274 }
275275
276276 static int dn_forwarding_proc(ctl_table *table, int write,
277− struct file *filep,
278277 void __user *buffer,
279278 size_t *lenp, loff_t *ppos)
280279 {
@@ -290,7 +289,7 @@ static int dn_forwarding_proc(ctl_table *table, int write, · 9 unmodified lines
290289 dn_db = dev->dn_ptr;
291290 old = dn_db->parms.forwarding;
292291
293− err = proc_dointvec(table, write, filep, buffer, lenp, ppos);
292+ err = proc_dointvec(table, write, buffer, lenp, ppos);
294293
295294 if ((err >= 0) && write) {
296295 if (dn_db->parms.forwarding < 0)
net/decnet/sysctl_net_decnet.c+0−2
@@ -165,7 +165,6 @@ static int dn_node_address_strategy(ctl_table *table, · 164 unmodified lines
165165 }
166166
167167 static int dn_node_address_handler(ctl_table *table, int write,
168− struct file *filp,
169168 void __user *buffer,
170169 size_t *lenp, loff_t *ppos)
171170 {
@@ -276,7 +275,6 @@ static int dn_def_dev_strategy(ctl_table *table, · 104 unmodified lines
276275
277276
278277 static int dn_def_dev_handler(ctl_table *table, int write,
279− struct file * filp,
280278 void __user *buffer,
281279 size_t *lenp, loff_t *ppos)
282280 {
net/ipv4/devinet.c+6−6
@@ -1270,10 +1270,10 @@ static void inet_forward_change(struct net *net) · 1269 unmodified lines
12701270 }
12711271
12721272 static int devinet_conf_proc(ctl_table *ctl, int write,
1273− struct file *filp, void __user *buffer,
1273+ void __user *buffer,
12741274 size_t *lenp, loff_t *ppos)
12751275 {
1276− int ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
1276+ int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
12771277
12781278 if (write) {
12791279 struct ipv4_devconf *cnf = ctl->extra1;
@@ -1342,12 +1342,12 @@ static int devinet_conf_sysctl(ctl_table *table, · 62 unmodified lines
13421342 }
13431343
13441344 static int devinet_sysctl_forward(ctl_table *ctl, int write,
1345− struct file *filp, void __user *buffer,
1345+ void __user *buffer,
13461346 size_t *lenp, loff_t *ppos)
13471347 {
13481348 int *valp = ctl->data;
13491349 int val = *valp;
1350− int ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
1350+ int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
13511351
13521352 if (write && *valp != val) {
13531353 struct net *net = ctl->extra2;
@@ -1372,12 +1372,12 @@ static int devinet_sysctl_forward(ctl_table *ctl, int write, · 18 unmodified lines
13721372 }
13731373
13741374 int ipv4_doint_and_flush(ctl_table *ctl, int write,
1375− struct file *filp, void __user *buffer,
1375+ void __user *buffer,
13761376 size_t *lenp, loff_t *ppos)
13771377 {
13781378 int *valp = ctl->data;
13791379 int val = *valp;
1380− int ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
1380+ int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
13811381 struct net *net = ctl->extra2;
13821382
13831383 if (write && *valp != val)
net/ipv4/route.c+3−4
@@ -3036,7 +3036,7 @@ void ip_rt_multicast_event(struct in_device *in_dev) · 3035 unmodified lines
30363036
30373037 #ifdef CONFIG_SYSCTL
30383038 static int ipv4_sysctl_rtcache_flush(ctl_table *__ctl, int write,
3039− struct file *filp, void __user *buffer,
3039+ void __user *buffer,
30403040 size_t *lenp, loff_t *ppos)
30413041 {
30423042 if (write) {
@@ -3046,7 +3046,7 @@ static int ipv4_sysctl_rtcache_flush(ctl_table *__ctl, int write, · 3 unmodified lines
30463046
30473047 memcpy(&ctl, __ctl, sizeof(ctl));
30483048 ctl.data = &flush_delay;
3049− proc_dointvec(&ctl, write, filp, buffer, lenp, ppos);
3049+ proc_dointvec(&ctl, write, buffer, lenp, ppos);
30503050
30513051 net = (struct net *)__ctl->extra1;
30523052 rt_cache_flush(net, flush_delay);
@@ -3106,12 +3106,11 @@ static void rt_secret_reschedule(int old) · 53 unmodified lines
31063106 }
31073107
31083108 static int ipv4_sysctl_rt_secret_interval(ctl_table *ctl, int write,
3109− struct file *filp,
31103109 void __user *buffer, size_t *lenp,
31113110 loff_t *ppos)
31123111 {
31133112 int old = ip_rt_secret_interval;
3114− int ret = proc_dointvec_jiffies(ctl, write, filp, buffer, lenp, ppos);
3113+ int ret = proc_dointvec_jiffies(ctl, write, buffer, lenp, ppos);
31153114
31163115 rt_secret_reschedule(old);
31173116
net/ipv4/sysctl_net_ipv4.c+8−8
@@ -36,7 +36,7 @@ static void set_local_port_range(int range[2]) · 35 unmodified lines
3636 }
3737
3838 /* Validate changes from /proc interface. */
39−static int ipv4_local_port_range(ctl_table *table, int write, struct file *filp,
39+static int ipv4_local_port_range(ctl_table *table, int write,
4040 void __user *buffer,
4141 size_t *lenp, loff_t *ppos)
4242 {
@@ -51,7 +51,7 @@ static int ipv4_local_port_range(ctl_table *table, int write, struct file *filp, · 8 unmodified lines
5151 };
5252
5353 inet_get_local_port_range(range, range + 1);
54− ret = proc_dointvec_minmax(&tmp, write, filp, buffer, lenp, ppos);
54+ ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos);
5555
5656 if (write && ret == 0) {
5757 if (range[1] < range[0])
@@ -91,7 +91,7 @@ static int ipv4_sysctl_local_port_range(ctl_table *table, · 33 unmodified lines
9191 }
9292
9393
94−static int proc_tcp_congestion_control(ctl_table *ctl, int write, struct file * filp,
94+static int proc_tcp_congestion_control(ctl_table *ctl, int write,
9595 void __user *buffer, size_t *lenp, loff_t *ppos)
9696 {
9797 char val[TCP_CA_NAME_MAX];
@@ -103,7 +103,7 @@ static int proc_tcp_congestion_control(ctl_table *ctl, int write, struct file * · 5 unmodified lines
103103
104104 tcp_get_default_congestion_control(val);
105105
106− ret = proc_dostring(&tbl, write, filp, buffer, lenp, ppos);
106+ ret = proc_dostring(&tbl, write, buffer, lenp, ppos);
107107 if (write && ret == 0)
108108 ret = tcp_set_default_congestion_control(val);
109109 return ret;
@@ -129,7 +129,7 @@ static int sysctl_tcp_congestion_control(ctl_table *table, · 19 unmodified lines
129129 }
130130
131131 static int proc_tcp_available_congestion_control(ctl_table *ctl,
132− int write, struct file * filp,
132+ int write,
133133 void __user *buffer, size_t *lenp,
134134 loff_t *ppos)
135135 {
@@ -140,13 +140,13 @@ static int proc_tcp_available_congestion_control(ctl_table *ctl, · 4 unmodified lines
140140 if (!tbl.data)
141141 return -ENOMEM;
142142 tcp_get_available_congestion_control(tbl.data, TCP_CA_BUF_MAX);
143− ret = proc_dostring(&tbl, write, filp, buffer, lenp, ppos);
143+ ret = proc_dostring(&tbl, write, buffer, lenp, ppos);
144144 kfree(tbl.data);
145145 return ret;
146146 }
147147
148148 static int proc_allowed_congestion_control(ctl_table *ctl,
149− int write, struct file * filp,
149+ int write,
150150 void __user *buffer, size_t *lenp,
151151 loff_t *ppos)
152152 {
@@ -158,7 +158,7 @@ static int proc_allowed_congestion_control(ctl_table *ctl, · 5 unmodified lines
158158 return -ENOMEM;
159159
160160 tcp_get_allowed_congestion_control(tbl.data, tbl.maxlen);
161− ret = proc_dostring(&tbl, write, filp, buffer, lenp, ppos);
161+ ret = proc_dostring(&tbl, write, buffer, lenp, ppos);
162162 if (write && ret == 0)
163163 ret = tcp_set_allowed_congestion_control(tbl.data);
164164 kfree(tbl.data);
net/ipv6/addrconf.c+4−4
@@ -3986,14 +3986,14 @@ static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp) · 3985 unmodified lines
39863986 #ifdef CONFIG_SYSCTL
39873987
39883988 static
3989−int addrconf_sysctl_forward(ctl_table *ctl, int write, struct file * filp,
3989+int addrconf_sysctl_forward(ctl_table *ctl, int write,
39903990 void __user *buffer, size_t *lenp, loff_t *ppos)
39913991 {
39923992 int *valp = ctl->data;
39933993 int val = *valp;
39943994 int ret;
39953995
3996− ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
3996+ ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
39973997
39983998 if (write)
39993999 ret = addrconf_fixup_forwarding(ctl, valp, val);
@@ -4090,14 +4090,14 @@ static int addrconf_disable_ipv6(struct ctl_table *table, int *p, int old) · 90 unmodified lines
40904090 }
40914091
40924092 static
4093−int addrconf_sysctl_disable(ctl_table *ctl, int write, struct file * filp,
4093+int addrconf_sysctl_disable(ctl_table *ctl, int write,
40944094 void __user *buffer, size_t *lenp, loff_t *ppos)
40954095 {
40964096 int *valp = ctl->data;
40974097 int val = *valp;
40984098 int ret;
40994099
4100− ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
4100+ ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
41014101
41024102 if (write)
41034103 ret = addrconf_disable_ipv6(ctl, valp, val);
net/ipv6/ndisc.c+4−4
@@ -1735,7 +1735,7 @@ static void ndisc_warn_deprecated_sysctl(struct ctl_table *ctl, · 1734 unmodified lines
17351735 }
17361736 }
17371737
1738−int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, struct file * filp, void __user *buffer, size_t *lenp, loff_t *ppos)
1738+int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos)
17391739 {
17401740 struct net_device *dev = ctl->extra1;
17411741 struct inet6_dev *idev;
@@ -1746,16 +1746,16 @@ int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, struct file * f · 4 unmodified lines
17461746 ndisc_warn_deprecated_sysctl(ctl, "syscall", dev ? dev->name : "default");
17471747
17481748 if (strcmp(ctl->procname, "retrans_time") == 0)
1749− ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
1749+ ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
17501750
17511751 else if (strcmp(ctl->procname, "base_reachable_time") == 0)
17521752 ret = proc_dointvec_jiffies(ctl, write,
1753− filp, buffer, lenp, ppos);
1753+ buffer, lenp, ppos);
17541754
17551755 else if ((strcmp(ctl->procname, "retrans_time_ms") == 0) ||
17561756 (strcmp(ctl->procname, "base_reachable_time_ms") == 0))
17571757 ret = proc_dointvec_ms_jiffies(ctl, write,
1758− filp, buffer, lenp, ppos);
1758+ buffer, lenp, ppos);
17591759 else
17601760 ret = -1;
17611761
net/ipv6/route.c+2−2
@@ -2524,13 +2524,13 @@ static const struct file_operations rt6_stats_seq_fops = { · 2523 unmodified lines
25242524 #ifdef CONFIG_SYSCTL
25252525
25262526 static
2527−int ipv6_sysctl_rtcache_flush(ctl_table *ctl, int write, struct file * filp,
2527+int ipv6_sysctl_rtcache_flush(ctl_table *ctl, int write,
25282528 void __user *buffer, size_t *lenp, loff_t *ppos)
25292529 {
25302530 struct net *net = current->nsproxy->net_ns;
25312531 int delay = net->ipv6.sysctl.flush_delay;
25322532 if (write) {
2533− proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
2533+ proc_dointvec(ctl, write, buffer, lenp, ppos);
25342534 fib6_run_gc(delay <= 0 ? ~0UL : (unsigned long)delay, net);
25352535 return 0;
25362536 } else
net/irda/irsysctl.c+4−4
@@ -73,12 +73,12 @@ static int min_lap_keepalive_time = 100; /* 100us */ · 72 unmodified lines
7373 /* For other sysctl, I've no idea of the range. Maybe Dag could help
7474 * us on that - Jean II */
7575
76−static int do_devname(ctl_table *table, int write, struct file *filp,
76+static int do_devname(ctl_table *table, int write,
7777 void __user *buffer, size_t *lenp, loff_t *ppos)
7878 {
7979 int ret;
8080
81− ret = proc_dostring(table, write, filp, buffer, lenp, ppos);
81+ ret = proc_dostring(table, write, buffer, lenp, ppos);
8282 if (ret == 0 && write) {
8383 struct ias_value *val;
8484
@@ -90,12 +90,12 @@ static int do_devname(ctl_table *table, int write, struct file *filp, · 5 unmodified lines
9090 }
9191
9292
93−static int do_discovery(ctl_table *table, int write, struct file *filp,
93+static int do_discovery(ctl_table *table, int write,
9494 void __user *buffer, size_t *lenp, loff_t *ppos)
9595 {
9696 int ret;
9797
98− ret = proc_dointvec(table, write, filp, buffer, lenp, ppos);
98+ ret = proc_dointvec(table, write, buffer, lenp, ppos);
9999 if (ret)
100100 return ret;
101101
net/netfilter/ipvs/ip_vs_ctl.c+4−4
@@ -1496,14 +1496,14 @@ static int ip_vs_zero_all(void) · 1495 unmodified lines
14961496
14971497
14981498 static int
1499−proc_do_defense_mode(ctl_table *table, int write, struct file * filp,
1499+proc_do_defense_mode(ctl_table *table, int write,
15001500 void __user *buffer, size_t *lenp, loff_t *ppos)
15011501 {
15021502 int *valp = table->data;
15031503 int val = *valp;
15041504 int rc;
15051505
1506− rc = proc_dointvec(table, write, filp, buffer, lenp, ppos);
1506+ rc = proc_dointvec(table, write, buffer, lenp, ppos);
15071507 if (write && (*valp != val)) {
15081508 if ((*valp < 0) || (*valp > 3)) {
15091509 /* Restore the correct value */
@@ -1517,7 +1517,7 @@ proc_do_defense_mode(ctl_table *table, int write, struct file * filp, · 7 unmodified lines
15171517
15181518
15191519 static int
1520−proc_do_sync_threshold(ctl_table *table, int write, struct file *filp,
1520+proc_do_sync_threshold(ctl_table *table, int write,
15211521 void __user *buffer, size_t *lenp, loff_t *ppos)
15221522 {
15231523 int *valp = table->data;
@@ -1527,7 +1527,7 @@ proc_do_sync_threshold(ctl_table *table, int write, struct file *filp, · 3 unmodified lines
15271527 /* backup the value first */
15281528 memcpy(val, valp, sizeof(val));
15291529
1530− rc = proc_dointvec(table, write, filp, buffer, lenp, ppos);
1530+ rc = proc_dointvec(table, write, buffer, lenp, ppos);
15311531 if (write && (valp[0] < 0 || valp[1] < 0 || valp[0] >= valp[1])) {
15321532 /* Restore the correct value */
15331533 memcpy(valp, val, sizeof(val));
net/netfilter/nf_log.c+2−2
@@ -226,7 +226,7 @@ static char nf_log_sysctl_fnames[NFPROTO_NUMPROTO-NFPROTO_UNSPEC][3]; · 225 unmodified lines
226226 static struct ctl_table nf_log_sysctl_table[NFPROTO_NUMPROTO+1];
227227 static struct ctl_table_header *nf_log_dir_header;
228228
229−static int nf_log_proc_dostring(ctl_table *table, int write, struct file *filp,
229+static int nf_log_proc_dostring(ctl_table *table, int write,
230230 void __user *buffer, size_t *lenp, loff_t *ppos)
231231 {
232232 const struct nf_logger *logger;
@@ -260,7 +260,7 @@ static int nf_log_proc_dostring(ctl_table *table, int write, struct file *filp, · 27 unmodified lines
260260 table->data = "NONE";
261261 else
262262 table->data = logger->name;
263− r = proc_dostring(table, write, filp, buffer, lenp, ppos);
263+ r = proc_dostring(table, write, buffer, lenp, ppos);
264264 mutex_unlock(&nf_log_mutex);
265265 }
266266
net/phonet/sysctl.c+2−2
@@ -56,7 +56,7 @@ void phonet_get_local_port_range(int *min, int *max) · 55 unmodified lines
5656 } while (read_seqretry(&local_port_range_lock, seq));
5757 }
5858
59−static int proc_local_port_range(ctl_table *table, int write, struct file *filp,
59+static int proc_local_port_range(ctl_table *table, int write,
6060 void __user *buffer,
6161 size_t *lenp, loff_t *ppos)
6262 {
@@ -70,7 +70,7 @@ static int proc_local_port_range(ctl_table *table, int write, struct file *filp, · 7 unmodified lines
7070 .extra2 = &local_port_range_max,
7171 };
7272
73− ret = proc_dointvec_minmax(&tmp, write, filp, buffer, lenp, ppos);
73+ ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos);
7474
7575 if (write && ret == 0) {
7676 if (range[1] < range[0])
net/sunrpc/sysctl.c+2−2
@@ -56,7 +56,7 @@ rpc_unregister_sysctl(void) · 55 unmodified lines
5656 }
5757 }
5858
59−static int proc_do_xprt(ctl_table *table, int write, struct file *file,
59+static int proc_do_xprt(ctl_table *table, int write,
6060 void __user *buffer, size_t *lenp, loff_t *ppos)
6161 {
6262 char tmpbuf[256];
@@ -71,7 +71,7 @@ static int proc_do_xprt(ctl_table *table, int write, struct file *file, · 8 unmodified lines
7171 }
7272
7373 static int
74−proc_dodebug(ctl_table *table, int write, struct file *file,
74+proc_dodebug(ctl_table *table, int write,
7575 void __user *buffer, size_t *lenp, loff_t *ppos)
7676 {
7777 char tmpbuf[20], c, *s;
net/sunrpc/xprtrdma/svc_rdma.c+1−1
@@ -80,7 +80,7 @@ struct kmem_cache *svc_rdma_ctxt_cachep; · 79 unmodified lines
8080 * current value.
8181 */
8282 static int read_reset_stat(ctl_table *table, int write,
83− struct file *filp, void __user *buffer, size_t *lenp,
83+ void __user *buffer, size_t *lenp,
8484 loff_t *ppos)
8585 {
8686 atomic_t *stat = (atomic_t *)table->data;
security/min_addr.c+2−2
@@ -28,12 +28,12 @@ static void update_mmap_min_addr(void) · 27 unmodified lines
2828 * sysctl handler which just sets dac_mmap_min_addr = the new value and then
2929 * calls update_mmap_min_addr() so non MAP_FIXED hints get rounded properly
3030 */
31−int mmap_min_addr_handler(struct ctl_table *table, int write, struct file *filp,
31+int mmap_min_addr_handler(struct ctl_table *table, int write,
3232 void __user *buffer, size_t *lenp, loff_t *ppos)
3333 {
3434 int ret;
3535
36− ret = proc_doulongvec_minmax(table, write, filp, buffer, lenp, ppos);
36+ ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos);
3737
3838 update_mmap_min_addr();
3939