mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] audit: Include securiry.h unconditionally
@ 2023-07-20  1:50 Xiu Jianfeng
  2023-07-20 19:06 ` [PATCH] " Paul Moore
  0 siblings, 1 reply; 2+ messages in thread
From: Xiu Jianfeng @ 2023-07-20  1:50 UTC (permalink / raw)
  To: paul, eparis; +Cc: audit, linux-kernel

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(-)

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>
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] audit: Include securiry.h unconditionally
  2023-07-20  1:50 [PATCH -next] audit: Include securiry.h unconditionally Xiu Jianfeng
@ 2023-07-20 19:06 ` Paul Moore
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2023-07-20 19:06 UTC (permalink / raw)
  To: Xiu Jianfeng, eparis; +Cc: audit, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-20 19:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-20  1:50 [PATCH -next] audit: Include securiry.h unconditionally Xiu Jianfeng
2023-07-20 19:06 ` [PATCH] " Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®