It's better to define audit_ever_enabled as bool. Signed-off-by: Gao feng <gaofeng@xxxxxxxxxxxxxx> --- kernel/audit.c | 2 +- kernel/audit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index 91e53d0..ad3084c 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -78,7 +78,7 @@ static int audit_initialized; #define AUDIT_ON 1 #define AUDIT_LOCKED 2 int audit_enabled; -int audit_ever_enabled; +bool audit_ever_enabled; EXPORT_SYMBOL_GPL(audit_enabled); diff --git a/kernel/audit.h b/kernel/audit.h index 1c95131..2258827 100644 --- a/kernel/audit.h +++ b/kernel/audit.h @@ -205,7 +205,7 @@ struct audit_context { #endif }; -extern int audit_ever_enabled; +extern bool audit_ever_enabled; extern void audit_copy_inode(struct audit_names *name, const struct dentry *dentry, -- 1.8.1.4 _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/containers