lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 1 May 2011 03:36:19 +0200 From: Lucian Adrian Grijincu <lucian.grijincu@...il.com> To: linux-kernel@...r.kernel.org Cc: Lucian Adrian Grijincu <lucian.grijincu@...il.com> Subject: [PATCH 49/69] sysctl: delete unused register_sysctl_table function Signed-off-by: Lucian Adrian Grijincu <lucian.grijincu@...il.com> --- include/linux/sysctl.h | 3 +-- kernel/sysctl.c | 26 ++------------------------ 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 11684d9..470e06a 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h @@ -985,7 +985,7 @@ extern int proc_do_large_bitmap(struct ctl_table *, int, void __user *, size_t *, loff_t *); /* - * Register a set of sysctl names by calling register_sysctl_table + * Register a set of sysctl names by calling __register_sysctl_paths * with an initialised array of struct ctl_table's. An entry with * NULL procname terminates the table. table->de will be * set up by the registration and need not be initialised in advance. @@ -1065,7 +1065,6 @@ void register_sysctl_root(struct ctl_table_root *root); struct ctl_table_header *__register_sysctl_paths( struct ctl_table_root *root, struct nsproxy *namespaces, const struct ctl_path *path, struct ctl_table *table); -struct ctl_table_header *register_sysctl_table(struct ctl_table * table); struct ctl_table_header *register_sysctl_paths(const struct ctl_path *path, struct ctl_table *table); diff --git a/kernel/sysctl.c b/kernel/sysctl.c index c0bb324..b813724 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1905,7 +1905,7 @@ struct ctl_table_header *__register_sysctl_paths( } /** - * register_sysctl_table_path - register a sysctl table hierarchy + * register_sysctl_paths - register a sysctl table hierarchy * @path: The path to the directory the sysctl table is in. * @table: the top-level table structure * @@ -1922,24 +1922,8 @@ struct ctl_table_header *register_sysctl_paths(const struct ctl_path *path, } /** - * register_sysctl_table - register a sysctl table hierarchy - * @table: the top-level table structure - * - * Register a sysctl table hierarchy. @table should be a filled in ctl_table - * array. A completely 0 filled entry terminates the table. - * - * See register_sysctl_paths for more details. - */ -struct ctl_table_header *register_sysctl_table(struct ctl_table *table) -{ - static const struct ctl_path null_path[] = { {} }; - - return register_sysctl_paths(null_path, table); -} - -/** * unregister_sysctl_table - unregister a sysctl table hierarchy - * @header: the header returned from register_sysctl_table + * @header: the header returned from __register_sysctl_paths * * Unregisters the sysctl table and all children. proc entries may not * actually be removed until they are no longer used by anyone. @@ -1987,11 +1971,6 @@ void setup_sysctl_set(struct ctl_table_set *p, } #else /* !CONFIG_SYSCTL */ -struct ctl_table_header *register_sysctl_table(struct ctl_table * table) -{ - return NULL; -} - struct ctl_table_header *register_sysctl_paths(const struct ctl_path *path, struct ctl_table *table) { @@ -2977,6 +2956,5 @@ EXPORT_SYMBOL(proc_dointvec_ms_jiffies); EXPORT_SYMBOL(proc_dostring); EXPORT_SYMBOL(proc_doulongvec_minmax); EXPORT_SYMBOL(proc_doulongvec_ms_jiffies_minmax); -EXPORT_SYMBOL(register_sysctl_table); EXPORT_SYMBOL(register_sysctl_paths); EXPORT_SYMBOL(unregister_sysctl_table); -- 1.7.5.134.g1c08b -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists