projects/linux·commit 30aa4faf

smack: make smk_cipso_doi() and smk_unlbl_ambient()

30aa4faf · Casey Schaufler <[email protected]> · 2008-04-28 02:13:43 -07:00

The functions smk_cipso_doi and smk_unlbl_ambient are not used outside
smackfs.c and should hence be static.

Signed-off-by: Casey Schaufler <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
30aa4faf62b2dd9b239ae06ca7a85f1d36d7ef25
Parents
55d00ccf

Changes

1 files changed · +2 −2

FileStatusAddDelContent
security/smack/smackfs.cmodified+2−2View file

security/smack/smackfs.c

View file
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c
index 6ba2837..a5da5a8 100644
--- a/security/smack/smackfs.c
+++ b/security/smack/smackfs.c
@@ -317,7 +317,7 @@ static const struct file_operations smk_load_ops = {
/**
* smk_cipso_doi - initialize the CIPSO domain
*/
-void smk_cipso_doi(void)
+static void smk_cipso_doi(void)
{
int rc;
struct cipso_v4_doi *doip;
@@ -350,7 +350,7 @@ void smk_cipso_doi(void)
/**
* smk_unlbl_ambient - initialize the unlabeled domain
*/
-void smk_unlbl_ambient(char *oldambient)
+static void smk_unlbl_ambient(char *oldambient)
{
int rc;
struct netlbl_audit audit_info;