audit: remove unnecessary #if CONFIG_AUDIT
authorGao feng <gaofeng@cn.fujitsu.com>
Mon, 29 Apr 2013 22:05:16 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Apr 2013 22:54:26 +0000 (15:54 -0700)
The files which include kernel/audit.h are complied only when
CONFIG_AUDIT is set.

Just like audit_pid, there is no need to surround audit_ever_enabled
with CONFIG_AUDIT.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Paris <eparis@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/audit.h

index d06ffc144f8183731524c1f7ccce3ed896062d5c..11468d99dad00b9f168071701c35965cf49ae585 100644 (file)
@@ -59,9 +59,7 @@ struct audit_entry {
        struct audit_krule      rule;
 };
 
-#ifdef CONFIG_AUDIT
 extern int audit_ever_enabled;
-#endif
 
 extern int audit_pid;
 
This page took 0.027876 seconds and 5 git commands to generate.