ima: add missing '__init' keywords

Add missing keywords to the function definition to cleanup
to discard initialization code.

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Reviewed-by: Roberto Sassu <roberto.sassu@polito.it>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
This commit is contained in:
Dmitry Kasatkin 2014-09-03 10:19:58 +03:00 committed by Mimi Zohar
parent 3a8a2eadc4
commit e4a9c51965
3 changed files with 3 additions and 5 deletions

View File

@ -107,8 +107,6 @@ void ima_print_digest(struct seq_file *m, u8 *digest, int size);
struct ima_template_desc *ima_template_desc_current(void); struct ima_template_desc *ima_template_desc_current(void);
int ima_init_template(void); int ima_init_template(void);
int ima_init_template(void);
/* /*
* used to protect h_table and sha_table * used to protect h_table and sha_table
*/ */

View File

@ -97,7 +97,7 @@ static int ima_kernel_read(struct file *file, loff_t offset,
return ret; return ret;
} }
int ima_init_crypto(void) int __init ima_init_crypto(void)
{ {
long rc; long rc;

View File

@ -152,7 +152,7 @@ out:
return result; return result;
} }
static int init_defined_templates(void) static int __init init_defined_templates(void)
{ {
int i = 0; int i = 0;
int result = 0; int result = 0;
@ -178,7 +178,7 @@ struct ima_template_desc *ima_template_desc_current(void)
return ima_template; return ima_template;
} }
int ima_init_template(void) int __init ima_init_template(void)
{ {
int result; int result;