diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2013-04-29 18:05:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 18:54:26 -0400 |
commit | dde5b7d6e7be308ce371baa96058c2d40df26c05 (patch) | |
tree | b10201805803cd062de298bb604151cedbfbd273 /kernel/audit.h | |
parent | 374c586d95f288296e1e718533401d8ce0eecee3 (diff) |
audit: remove unnecessary #if CONFIG_AUDIT
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>
Diffstat (limited to 'kernel/audit.h')
-rw-r--r-- | kernel/audit.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/audit.h b/kernel/audit.h index d06ffc144f81..11468d99dad0 100644 --- a/kernel/audit.h +++ b/kernel/audit.h | |||
@@ -59,9 +59,7 @@ struct audit_entry { | |||
59 | struct audit_krule rule; | 59 | struct audit_krule rule; |
60 | }; | 60 | }; |
61 | 61 | ||
62 | #ifdef CONFIG_AUDIT | ||
63 | extern int audit_ever_enabled; | 62 | extern int audit_ever_enabled; |
64 | #endif | ||
65 | 63 | ||
66 | extern int audit_pid; | 64 | extern int audit_pid; |
67 | 65 | ||