]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
apparmor: declare stack_msg as static
authorJohn Johansen <john.johansen@canonical.com>
Thu, 9 Nov 2023 14:32:28 +0000 (06:32 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 19 Nov 2023 08:48:12 +0000 (00:48 -0800)
stack_msg in upstream code is only used in securit/apparmor/domain.c
so declare it as static.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202311092251.TwKSNZ0u-lkp@intel.com/
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/domain.c

index 89fbeab4b33bd89041ec5af15aac390034249165..571158ec6188f92cfb5082e8df117aff0bc914f9 100644 (file)
@@ -1311,7 +1311,7 @@ static int change_profile_perms_wrapper(const char *op, const char *name,
        return error;
 }
 
-const char *stack_msg = "change_profile unprivileged unconfined converted to stacking";
+static const char *stack_msg = "change_profile unprivileged unconfined converted to stacking";
 
 /**
  * aa_change_profile - perform a one-way profile transition