mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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:
parent
3a8a2eadc4
commit
e4a9c51965
@ -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 @@ out:
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user