Skip to content

Commit a3f215e

Browse files
Souptick Joarder (HPE)jrjohansen
authored andcommitted
apparmor: Mark alloc_unconfined() as static
Kernel test robot throws below warning -> security/apparmor/policy_ns.c:83:20: warning: no previous prototype for function 'alloc_unconfined' [-Wmissing-prototypes] Mark it as static. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@gmail.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent 524d8e1 commit a3f215e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/apparmor/policy_ns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const char *aa_ns_name(struct aa_ns *curr, struct aa_ns *view, bool subns)
8080
return aa_hidden_ns_name;
8181
}
8282

83-
struct aa_profile *alloc_unconfined(const char *name)
83+
static struct aa_profile *alloc_unconfined(const char *name)
8484
{
8585
struct aa_profile *profile;
8686

0 commit comments

Comments
 (0)