From: MaYuming Date: Sun, 11 Jul 2021 02:57:47 +0000 (+0800) Subject: audit: add header protection to kernel/audit.h X-Git-Tag: howlett/maple/20220722_2~2462^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d97e99386ad0dcae08cb0f0c70efa806a2d4811c;p=users%2Fjedix%2Flinux-maple.git 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 --- 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