Commit f6c64dc3 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by John Johansen

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: 11c236b8 ("apparmor: add a default null dfa")
Signed-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent e9e6fa49
...@@ -31,7 +31,7 @@ static char stacksplitdfa_src[] = { ...@@ -31,7 +31,7 @@ static char stacksplitdfa_src[] = {
}; };
struct aa_dfa *stacksplitdfa; struct aa_dfa *stacksplitdfa;
int aa_setup_dfa_engine(void) int __init aa_setup_dfa_engine(void)
{ {
int error; int error;
...@@ -59,7 +59,7 @@ int aa_setup_dfa_engine(void) ...@@ -59,7 +59,7 @@ int aa_setup_dfa_engine(void)
return 0; return 0;
} }
void aa_teardown_dfa_engine(void) void __init aa_teardown_dfa_engine(void)
{ {
aa_put_dfa(stacksplitdfa); aa_put_dfa(stacksplitdfa);
aa_put_dfa(nulldfa); aa_put_dfa(nulldfa);
......
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