From: Zhenwen Xu <helight.xu@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: viro@zeniv.linux.org.uk, linux-audit@redhat.com
Subject: [PATCH] remove duplicated include <linux/audit.h>
Date: Wed, 29 Apr 2009 17:54:38 +0800 [thread overview]
Message-ID: <20090429095438.GA4072@helight> (raw)
The <linux/audit.h> was included in kernel/audit.h, and
kernel/audit.c, kernel/auditfilter.c, and kernel/auditsc.c
already include the file kernel/audit.h, so it's unnecessary
to include <linux/audit.h> again.
kernel/audit.c
|
--#include <linux/audit.h> ---------------------
| |
--#include "audit.h" |--duplicated
| |
--#include <linux/audit.h>-------
Signed-off-by: Zhenwen Xu <helight.xu@gmail.com>
---
kernel/audit.c | 2 --
kernel/auditfilter.c | 2 +-
kernel/auditsc.c | 1 -
3 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/kernel/audit.c b/kernel/audit.c
index 9442c35..a04786e 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -49,8 +49,6 @@
#include <linux/err.h>
#include <linux/kthread.h>
-#include <linux/audit.h>
-
#include <net/sock.h>
#include <net/netlink.h>
#include <linux/skbuff.h>
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index a6fe71f..b7e9fec 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -20,7 +20,6 @@
*/
#include <linux/kernel.h>
-#include <linux/audit.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <linux/fs.h>
@@ -29,6 +28,7 @@
#include <linux/sched.h>
#include <linux/inotify.h>
#include <linux/security.h>
+
#include "audit.h"
/*
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 7d6ac7c..efe06bf 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -52,7 +52,6 @@
#include <linux/mount.h>
#include <linux/socket.h>
#include <linux/mqueue.h>
-#include <linux/audit.h>
#include <linux/personality.h>
#include <linux/time.h>
#include <linux/netlink.h>
--
1.5.6.5
--
---------------------------------
Zhenwen Xu - Open and Free
Home Page: http://zhwen.org
My Studio: http://dim4.cn
----- End forwarded message -----
--
--------------------------------
http://zhwen.org - Open and Free
next reply other threads:[~2009-04-29 9:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-29 9:54 Zhenwen Xu [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-04-28 2:32 [PATCH] remove duplicated include <linux/audit.h> Zhenwen Xu
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=20090429095438.GA4072@helight \
--to=helight.xu@gmail.com \
--cc=linux-audit@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.