Commit e4a9c519 authored by Dmitry Kasatkin's avatar Dmitry Kasatkin Committed by Mimi Zohar

ima: add missing '__init' keywords

Add missing keywords to the function definition to cleanup
to discard initialization code.
Signed-off-by: default avatarDmitry Kasatkin <d.kasatkin@samsung.com>
Reviewed-by: default avatarRoberto Sassu <roberto.sassu@polito.it>
Signed-off-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
parent 3a8a2ead
......@@ -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);
int ima_init_template(void);
int ima_init_template(void);
/*
* used to protect h_table and sha_table
*/
......
......@@ -97,7 +97,7 @@ static int ima_kernel_read(struct file *file, loff_t offset,
return ret;
}
int ima_init_crypto(void)
int __init ima_init_crypto(void)
{
long rc;
......
......@@ -152,7 +152,7 @@ static int template_desc_init_fields(const char *template_fmt,
return result;
}
static int init_defined_templates(void)
static int __init init_defined_templates(void)
{
int i = 0;
int result = 0;
......@@ -178,7 +178,7 @@ struct ima_template_desc *ima_template_desc_current(void)
return ima_template;
}
int ima_init_template(void)
int __init ima_init_template(void)
{
int result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment