Skip to content

Commit dde5b7d

Browse files
Gao fengtorvalds
authored andcommitted
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>
1 parent 374c586 commit dde5b7d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎kernel/audit.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ struct audit_entry {
5959
struct audit_krule rule;
6060
};
6161

62-
#ifdef CONFIG_AUDIT
6362
extern int audit_ever_enabled;
64-
#endif
6563

6664
extern int audit_pid;
6765

0 commit comments

Comments
 (0)