Skip to contentSkip to conversation

(02/25/08 linus git) smack functions smk_cipso_doi and smk_unlbl_ambient made static

PATCH New Casey Schaufler 1 participant 1 message Feb 25, 2008

Subsystems (2)
lore
Share & tools
lore

Casey Schaufler

author maintainer
#0 lore raw

PATCH 1/1 (02/25/08 linus git) smack functions smk_cipso_doi and smk_unlbl_ambient made static

From: Casey Schaufler <[email protected]>

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

---

security/smack/smackfs.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
security/smack/smackfs.c +0 -0
diff -uprN -X linux-2.6.25-g0225-base/Documentation/dontdiff linux-2.6.25-g0225-base/security/smack/smackfs.c linux-2.6.25-g0225/security/smack/smackfs.c
@@ -338,7 +338,7 @@ static const struct file_operations smk_

/**
* 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;

@@ -371,7 +371,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;