[-next] audit: Include securiry.h unconditionally

Message ID 20230720015032.45960-1-xiujianfeng@huawei.com
State New
Headers
Series [-next] audit: Include securiry.h unconditionally |

Commit Message

Xiu Jianfeng July 20, 2023, 1:50 a.m. UTC
  The ifdef-else logic is already in the header file, so include it
unconditionally, no functional changes here.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
---
 kernel/audit.c | 2 --
 1 file changed, 2 deletions(-)
  

Comments

Paul Moore July 20, 2023, 7:06 p.m. UTC | #1
On Jul 19, 2023 Xiu Jianfeng <xiujianfeng@huawei.com> wrote:
> 
> The ifdef-else logic is already in the header file, so include it
> unconditionally, no functional changes here.
> 
> Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
> ---
>  kernel/audit.c | 2 --
>  1 file changed, 2 deletions(-)

Merged with the spelling error in the subject line fixed, thanks.

--
paul-moore.com
  

Patch

diff --git a/kernel/audit.c b/kernel/audit.c
index 9bc0b0301198..45b2fb1e45af 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -53,9 +53,7 @@ 
 #include <net/sock.h>
 #include <net/netlink.h>
 #include <linux/skbuff.h>
-#ifdef CONFIG_SECURITY
 #include <linux/security.h>
-#endif
 #include <linux/freezer.h>
 #include <linux/pid_namespace.h>
 #include <net/netns/generic.h>