security: sparse fix: Move security_fixup_op to security.h
authorJames Morris <jmorris@namei.org>
Tue, 30 Aug 2011 03:48:53 +0000 (13:48 +1000)
committerJames Morris <jmorris@namei.org>
Fri, 9 Sep 2011 23:56:33 +0000 (16:56 -0700)
Fix sparse warning by moving declaraion to global header.

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

index a14c2d4b22cf5a5e7c5c8c768989cc052236d2fc..19d8e04e16884c2bfb860fe2f72715306753ea15 100644 (file)
@@ -1660,6 +1660,8 @@ struct security_operations {
 extern int security_init(void);
 extern int security_module_enable(struct security_operations *ops);
 extern int register_security(struct security_operations *ops);
+extern void __init security_fixup_ops(struct security_operations *ops);
+
 
 /* Security operations */
 int security_ptrace_access_check(struct task_struct *child, unsigned int mode);
index a6328421a0551bef7439247e3cda3588fcd30d20..9ebda054a33312482f7b868f7aec1e7990735c93 100644 (file)
@@ -26,9 +26,6 @@
 static __initdata char chosen_lsm[SECURITY_NAME_MAX + 1] =
        CONFIG_DEFAULT_SECURITY;
 
-/* things that live in capability.c */
-extern void __init security_fixup_ops(struct security_operations *ops);
-
 static struct security_operations *security_ops;
 static struct security_operations default_security_ops = {
        .name   = "default",