[Devel] [PATCH 2/2] SYSCTL: export root register and unregister routines

Stanislav Kinsbursky skinsbursky at parallels.com
Mon Dec 12 10:50:08 PST 2011


These routines will be used in SUNPRC module and thus have to be exported.

Signed-off-by: Stanislav Kinsbursky <skinsbursky at parallels.com>

---
 kernel/sysctl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 21e68c1..0ee5b73 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1700,6 +1700,7 @@ void register_sysctl_root(struct ctl_table_root *root)
 	list_add_tail(&root->root_list, &sysctl_table_root.root_list);
 	spin_unlock(&sysctl_lock);
 }
+EXPORT_SYMBOL_GPL(register_sysctl_root);
 
 void unregister_sysctl_root(struct ctl_table_root *root)
 {
@@ -1707,6 +1708,7 @@ void unregister_sysctl_root(struct ctl_table_root *root)
 	list_del(&root->root_list);
 	spin_unlock(&sysctl_lock);
 }
+EXPORT_SYMBOL_GPL(unregister_sysctl_root);
 
 /*
  * sysctl_perm does NOT grant the superuser all rights automatically, because




More information about the Devel mailing list