Skip to content

Commit 735ad5d

Browse files
committed
apparmor: declare nulldfa as static
With the conversion to a refcounted pdb the nulldfa is now only used in security/apparmor/lsm.c so declar it as static. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202311092038.lqfYnvmf-lkp@intel.com/ Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent 3c49ce0 commit 735ad5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

security/apparmor/lsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2106,7 +2106,7 @@ __initcall(apparmor_nf_ip_init);
21062106
static char nulldfa_src[] = {
21072107
#include "nulldfa.in"
21082108
};
2109-
struct aa_dfa *nulldfa;
2109+
static struct aa_dfa *nulldfa;
21102110

21112111
static char stacksplitdfa_src[] = {
21122112
#include "stacksplitdfa.in"

0 commit comments

Comments
 (0)