aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/realpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/tomoyo/realpath.c')
-rw-r--r--security/tomoyo/realpath.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/security/tomoyo/realpath.c b/security/tomoyo/realpath.c
index 5fd48d2..d47f16b 100644
--- a/security/tomoyo/realpath.c
+++ b/security/tomoyo/realpath.c
@@ -371,10 +371,8 @@ const struct tomoyo_path_info *tomoyo_save_name(const char *name)
/**
* tomoyo_realpath_init - Initialize realpath related code.
- *
- * Returns 0.
*/
-static int __init tomoyo_realpath_init(void)
+void __init tomoyo_realpath_init(void)
{
int i;
@@ -388,11 +386,8 @@ static int __init tomoyo_realpath_init(void)
if (tomoyo_find_domain(TOMOYO_ROOT_NAME) != &tomoyo_kernel_domain)
panic("Can't register tomoyo_kernel_domain");
up_read(&tomoyo_domain_list_lock);
- return 0;
}
-security_initcall(tomoyo_realpath_init);
-
/* Memory allocated for temporary purpose. */
static atomic_t tomoyo_dynamic_memory_size;