]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
apparmor: declare nulldfa as static
authorJohn Johansen <john.johansen@canonical.com>
Sun, 19 Nov 2023 09:14:10 +0000 (01:14 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 19 Nov 2023 09:14:10 +0000 (01:14 -0800)
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>
security/apparmor/lsm.c

index 4981bdf0299315e24f44ca8d65b38c48bd1247c3..d3d2fc13c6e7c8bdaa157ae562d952a3f38d0c1e 100644 (file)
@@ -2106,7 +2106,7 @@ __initcall(apparmor_nf_ip_init);
 static char nulldfa_src[] = {
        #include "nulldfa.in"
 };
-struct aa_dfa *nulldfa;
+static struct aa_dfa *nulldfa;
 
 static char stacksplitdfa_src[] = {
        #include "stacksplitdfa.in"