apparmor: sparse fix: include procattr.h in procattr.c
authorJames Morris <jmorris@namei.org>
Mon, 29 Aug 2011 01:45:44 +0000 (11:45 +1000)
committerJames Morris <jmorris@namei.org>
Fri, 9 Sep 2011 23:56:29 +0000 (16:56 -0700)
Fix sparse warnings:
security/apparmor/procattr.c:35:5: warning: symbol 'aa_getprocattr' was not declared. Should it be static?
security/apparmor/procattr.c:113:5: warning: symbol 'aa_setprocattr_changehat' was not declared. Should it be static?
security/apparmor/procattr.c:158:5: warning: symbol 'aa_setprocattr_changeprofile' was not declared. Should it be static?
security/apparmor/procattr.c:166:5: warning: symbol 'aa_setprocattr_permipc' was not declared. Should it be static?

Signed-off-by: James Morris <jmorris@namei.org>
Acked-by: John Johansen <john.johansen@canonical.com>
security/apparmor/procattr.c

index 04a2cf8d1b6596bcafd1ca6dde9dba013cd1abcb..1b41c542d376721646ba67dc4f17a3e21e1f241f 100644 (file)
@@ -16,6 +16,7 @@
 #include "include/context.h"
 #include "include/policy.h"
 #include "include/domain.h"
+#include "include/procattr.h"
 
 
 /**