sysctl: Remove now unused typedef ctl_table
Subsystems (2)
PATCH 1/1 sysctl: Remove now unused typedef ctl_table
All the uses have been removed so remove the typedef.
Signed-off-by Joe Perches <[email protected]>
--- include/linux/sysctl.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/sysctl.h +0 -2
@@ -34,8 +34,6 @@ struct ctl_table_root;struct ctl_table_header ;struct ctl_dir ; -typedef struct ctl_table ctl_table ; -typedef int proc_handler (struct ctl_table *ctl,int write,void __user *buffer,size_t *lenp,loff_t *ppos);
PATCH 1/1 proc_sysctl: convert use of typedef ctl_table to struct ctl_table
This typedef is unnecessary and should just be removed.
Remove the last actual use of typedef ctl_table.
Signed-off-by Joe Perches <[email protected]>
---
Quoted 1 line · Joe Perches
All the uses have been removed so remove the typedef.
Not so fast buckwheat.
I was showing off my obviously insufficient grep skills...
There's still this one.
These patches need reordering so that this one is first...
fs/proc/proc_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/proc/proc_sysctl.c +1 -1
@@ -632,7 +632,7 @@ out:return ret; } -static int scan (struct ctl_table_header *head,ctl_table *table, +static int scan (struct ctl_table_header *head,struct ctl_table *table,unsigned long *pos,struct file *file,struct dir_context *ctx) {