提交 dde5b7d6 编写于 作者: G Gao feng 提交者: Linus Torvalds

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: NGao feng <gaofeng@cn.fujitsu.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Paris <eparis@redhat.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 374c586d
...@@ -59,9 +59,7 @@ struct audit_entry { ...@@ -59,9 +59,7 @@ struct audit_entry {
struct audit_krule rule; struct audit_krule rule;
}; };
#ifdef CONFIG_AUDIT
extern int audit_ever_enabled; extern int audit_ever_enabled;
#endif
extern int audit_pid; extern int audit_pid;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册