diff options
author | Sergey Nazarov <s-nazarov@yandex.ru> | 2021-06-08 09:32:06 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-06-09 05:05:24 +0300 |
commit | 619ed58ac4e2fbed71ac05f664a4a17e32537176 (patch) | |
tree | 284e66e9f6da7db0cec7958bd847178b5687f968 /kernel/audit_tree.c | |
parent | 254c8b96c4af02a09004d605c7f2dfad7f1cb5ca (diff) | |
download | linux-619ed58ac4e2fbed71ac05f664a4a17e32537176.tar.xz |
audit: Rename enum audit_state constants to avoid AUDIT_DISABLED redefinition
AUDIT_DISABLED defined in kernel/audit.h as element of enum audit_state
and redefined in kernel/audit.c. This produces a warning when kernel builds
with syscalls audit disabled and brokes kernel build if -Werror used.
enum audit_state used in syscall audit code only. This patch changes
enum audit_state constants prefix AUDIT to AUDIT_STATE to avoid
AUDIT_DISABLED redefinition.
Signed-off-by: Sergey Nazarov <s-nazarov@yandex.ru>
Acked-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit_tree.c')
0 files changed, 0 insertions, 0 deletions