Skip to content

Commit 3c49ce0

Browse files
committed
apparmor: declare stack_msg as static
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>
1 parent e44a4dc commit 3c49ce0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

security/apparmor/domain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ static int change_profile_perms_wrapper(const char *op, const char *name,
13111311
return error;
13121312
}
13131313

1314-
const char *stack_msg = "change_profile unprivileged unconfined converted to stacking";
1314+
static const char *stack_msg = "change_profile unprivileged unconfined converted to stacking";
13151315

13161316
/**
13171317
* aa_change_profile - perform a one-way profile transition

0 commit comments

Comments
 (0)