Skip to content

Commit f6c64dc

Browse files
Xiu Jianfengjrjohansen
authored andcommitted
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: 11c236b ("apparmor: add a default null dfa") Signed-off-by: Xiu Jianfeng <[email protected]> Signed-off-by: John Johansen <[email protected]>
1 parent e9e6fa4 commit f6c64dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/apparmor/match.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static char stacksplitdfa_src[] = {
3131
};
3232
struct aa_dfa *stacksplitdfa;
3333

34-
int aa_setup_dfa_engine(void)
34+
int __init aa_setup_dfa_engine(void)
3535
{
3636
int error;
3737

@@ -59,7 +59,7 @@ int aa_setup_dfa_engine(void)
5959
return 0;
6060
}
6161

62-
void aa_teardown_dfa_engine(void)
62+
void __init aa_teardown_dfa_engine(void)
6363
{
6464
aa_put_dfa(stacksplitdfa);
6565
aa_put_dfa(nulldfa);

0 commit comments

Comments
 (0)