From: I Hsin Cheng <richard120310@gmail.com>
To: akpm@linux-foundation.org
Cc: paul@paul-moore.com, stephen.smalley.work@gmail.com,
eparis@parisplace.org, selinux@vger.kernel.org,
linux-kernel@vger.kernel.org,
I Hsin Cheng <richard120310@gmail.com>
Subject: [PATCH] netlink: Remove the include of files doesn't exist
Date: Fri, 5 Apr 2024 22:19:07 +0800 [thread overview]
Message-ID: <20240405141907.166334-1-richard120310@gmail.com> (raw)
The file for /security/selinux/security.h and the file for
/include/linux/selinux_netlink.h are no long exist. However the
preprocessor still performs the inclusion of those files, these
behaviors should be removed to ensure it's bug-free.
Signed-off-by: I Hsin Cheng <richard120310@gmail.com>
---
security/selinux/netlink.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/security/selinux/netlink.c b/security/selinux/netlink.c
index 1760aee71..8ce36abaa 100644
--- a/security/selinux/netlink.c
+++ b/security/selinux/netlink.c
@@ -13,11 +13,9 @@
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/skbuff.h>
-#include <linux/selinux_netlink.h>
#include <net/net_namespace.h>
#include <net/netlink.h>
-#include "security.h"
static struct sock *selnl __ro_after_init;
--
2.34.1
next reply other threads:[~2024-04-05 14:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-05 14:19 I Hsin Cheng [this message]
2024-04-05 16:03 ` [PATCH] netlink: Remove the include of files doesn't exist Stephen Smalley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240405141907.166334-1-richard120310@gmail.com \
--to=richard120310@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=eparis@parisplace.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paul@paul-moore.com \
--cc=selinux@vger.kernel.org \
--cc=stephen.smalley.work@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).