From d97e99386ad0dcae08cb0f0c70efa806a2d4811c Mon Sep 17 00:00:00 2001 From: MaYuming Date: Sun, 11 Jul 2021 10:57:47 +0800 Subject: audit: add header protection to kernel/audit.h Protect kernel/audit.h against multiple #include's. Signed-off-by: MaYuming [PM: rewrite subj/description] Signed-off-by: Paul Moore --- kernel/audit.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/audit.h b/kernel/audit.h index b565ea16c0a5..d6a2c899a8db 100644 --- a/kernel/audit.h +++ b/kernel/audit.h @@ -6,6 +6,9 @@ * Copyright 2005 IBM Corporation */ +#ifndef _KERNEL_AUDIT_H_ +#define _KERNEL_AUDIT_H_ + #include #include #include @@ -331,3 +334,5 @@ extern int audit_filter(int msgtype, unsigned int listtype); extern void audit_ctl_lock(void); extern void audit_ctl_unlock(void); + +#endif -- cgit v1.2.3-58-ga151