Skip to contentSkip to conversation

sysctl: Remove now unused typedef ctl_table

PATCH New Joe Perches 1 participant 2 messages Jun 9, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sysctl: Remove now unused typedef ctl_table

All the uses have been removed so remove the typedef.

---
 include/linux/sysctl.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/sysctl.h +0 -2
index 14a8ff2..b7361f8 100644
@@ -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);
 
#1 lore raw

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.

---

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
index 7129046..f92d5dd 100644
@@ -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)
 {