summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-08-08 23:22:16 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-09 00:57:24 +0200
commite5eea0981a3840f3f39f43d2d00461c4c24018e7 (patch)
tree06a009aec0b670b13b9f3864fe490b67925d16d9
parentlib/rbtree.c: fix typo in comment of __rb_insert() (diff)
downloadlinux-e5eea0981a3840f3f39f43d2d00461c4c24018e7.tar.xz
linux-e5eea0981a3840f3f39f43d2d00461c4c24018e7.zip
sysctl: remove typedef ctl_table
Remove the final user, and the typedef itself. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--fs/proc/proc_sysctl.c2
-rw-r--r--include/linux/sysctl.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index 71290463a1d3..f92d5dd578a4 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -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)
{
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index 14a8ff2de11e..b7361f831226 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -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);