[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220719021218.6807-1-jrdr.linux@gmail.com>
Date: Tue, 19 Jul 2022 07:42:18 +0530
From: Souptick Joarder <jrdr.linux@...il.com>
To: john.johansen@...onical.com, paul@...l-moore.com,
jmorris@...ei.org, serge@...lyn.com
Cc: apparmor@...ts.ubuntu.com, linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org,
"Souptick Joarder (HPE)" <jrdr.linux@...il.com>,
kernel test robot <lkp@...el.com>
Subject: [PATCH] apparmor: Mark alloc_unconfined() as static
From: "Souptick Joarder (HPE)" <jrdr.linux@...il.com>
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@...el.com>
Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@...il.com>
---
security/apparmor/policy_ns.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.25.1
Powered by blists - more mailing lists