summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorSouptick Joarder (HPE) <jrdr.linux@gmail.com>2022-07-19 05:12:18 +0300
committerJohn Johansen <john.johansen@canonical.com>2022-07-19 12:38:34 +0300
commita3f215ef088f1fc3e751dc9a5fa4c1a22f16212b (patch)
tree8f1830f7a007fceca5463910bd3c3ee819802f40 /security
parent524d8e14258a3c31bcaf915db5762e41249eb924 (diff)
downloadlinux-a3f215ef088f1fc3e751dc9a5fa4c1a22f16212b.tar.xz
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>
Diffstat (limited to 'security')
-rw-r--r--security/apparmor/policy_ns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/policy_ns.c b/security/apparmor/policy_ns.c
index 300953a02a24..4f6e9b3c24e6 100644
--- a/security/apparmor/policy_ns.c
+++ b/security/apparmor/policy_ns.c
@@ -80,7 +80,7 @@ const char *aa_ns_name(struct aa_ns *curr, struct aa_ns *view, bool subns)
return aa_hidden_ns_name;
}
-struct aa_profile *alloc_unconfined(const char *name)
+static struct aa_profile *alloc_unconfined(const char *name)
{
struct aa_profile *profile;