From: Souptick Joarder (HPE) Date: Tue, 19 Jul 2022 02:12:18 +0000 (+0530) Subject: apparmor: Mark alloc_unconfined() as static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a3f215ef088f1fc3e751dc9a5fa4c1a22f16212b;p=linux.git 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 Signed-off-by: Souptick Joarder (HPE) Signed-off-by: John Johansen --- diff --git a/security/apparmor/policy_ns.c b/security/apparmor/policy_ns.c index 300953a02a245..4f6e9b3c24e64 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;