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

Showing the changes to kernel/trace/trace_stack.c (1 of 60 files). Show all

Unified · Split

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))