mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-16 03:54:10 +00:00
apparmor: Add __init annotation to aa_{setup/teardown}_dfa_engine()
The aa_setup_dfa_engine() and aa_teardown_dfa_engine() is only called in
apparmor_init(), so let us add __init annotation to them.
Fixes: 11c236b89d
("apparmor: add a default null dfa")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
e9e6fa49db
commit
f6c64dc32a
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ static char stacksplitdfa_src[] = {
|
|||
};
|
||||
struct aa_dfa *stacksplitdfa;
|
||||
|
||||
int aa_setup_dfa_engine(void)
|
||||
int __init aa_setup_dfa_engine(void)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -59,7 +59,7 @@ int aa_setup_dfa_engine(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void aa_teardown_dfa_engine(void)
|
||||
void __init aa_teardown_dfa_engine(void)
|
||||
{
|
||||
aa_put_dfa(stacksplitdfa);
|
||||
aa_put_dfa(nulldfa);
|
||||
|
|
Loading…
Add table
Reference in a new issue