diff options
Diffstat (limited to 'security/tomoyo/realpath.c')
-rw-r--r-- | security/tomoyo/realpath.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/security/tomoyo/realpath.c b/security/tomoyo/realpath.c index 5fd48d23a217..d47f16b844b2 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) | |||
371 | 371 | ||
372 | /** | 372 | /** |
373 | * tomoyo_realpath_init - Initialize realpath related code. | 373 | * tomoyo_realpath_init - Initialize realpath related code. |
374 | * | ||
375 | * Returns 0. | ||
376 | */ | 374 | */ |
377 | static int __init tomoyo_realpath_init(void) | 375 | void __init tomoyo_realpath_init(void) |
378 | { | 376 | { |
379 | int i; | 377 | int i; |
380 | 378 | ||
@@ -388,11 +386,8 @@ static int __init tomoyo_realpath_init(void) | |||
388 | if (tomoyo_find_domain(TOMOYO_ROOT_NAME) != &tomoyo_kernel_domain) | 386 | if (tomoyo_find_domain(TOMOYO_ROOT_NAME) != &tomoyo_kernel_domain) |
389 | panic("Can't register tomoyo_kernel_domain"); | 387 | panic("Can't register tomoyo_kernel_domain"); |
390 | up_read(&tomoyo_domain_list_lock); | 388 | up_read(&tomoyo_domain_list_lock); |
391 | return 0; | ||
392 | } | 389 | } |
393 | 390 | ||
394 | security_initcall(tomoyo_realpath_init); | ||
395 | |||
396 | /* Memory allocated for temporary purpose. */ | 391 | /* Memory allocated for temporary purpose. */ |
397 | static atomic_t tomoyo_dynamic_memory_size; | 392 | static atomic_t tomoyo_dynamic_memory_size; |
398 | 393 | ||