diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2022-10-29 09:25:05 +0800 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2022-11-01 21:17:26 -0700 |
commit | f6c64dc32ab91b4c37fa2a255d2270f4ff0b95ba (patch) | |
tree | c15224685679353728f62639189293c7740b3bb8 /security | |
parent | e9e6fa49dbab6d84c676666f3fe7d360497fd65b (diff) | |
download | linux-f6c64dc32ab91b4c37fa2a255d2270f4ff0b95ba.tar.gz linux-f6c64dc32ab91b4c37fa2a255d2270f4ff0b95ba.tar.bz2 linux-f6c64dc32ab91b4c37fa2a255d2270f4ff0b95ba.zip |
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: 11c236b89d7c ("apparmor: add a default null dfa")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/apparmor/match.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/apparmor/match.c b/security/apparmor/match.c index 5095c26ca683..b97ef5e1db73 100644 --- a/security/apparmor/match.c +++ b/security/apparmor/match.c @@ -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); |