selinux: sparse fix: move selinux_complete_init
authorJames Morris <jmorris@namei.org>
Wed, 17 Aug 2011 01:13:31 +0000 (11:13 +1000)
committerJames Morris <jmorris@namei.org>
Fri, 9 Sep 2011 23:56:26 +0000 (16:56 -0700)
Sparse fix: move selinux_complete_init

Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/include/security.h
security/selinux/ss/services.c

index 3ba4feb..8556e1a 100644 (file)
@@ -216,6 +216,7 @@ struct selinux_kernel_status {
 
 extern void selinux_status_update_setenforce(int enforcing);
 extern void selinux_status_update_policyload(int seqno);
+extern void selinux_complete_init(void);
 
 #endif /* _SELINUX_SECURITY_H_ */
 
index f6917bc..37c50c6 100644 (file)
@@ -1790,7 +1790,6 @@ static void security_load_policycaps(void)
                                                  POLICYDB_CAPABILITY_OPENPERM);
 }
 
-extern void selinux_complete_init(void);
 static int security_preserve_bools(struct policydb *p);
 
 /**