[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20090428023216.GA4906@helight>
Date: Tue, 28 Apr 2009 10:32:16 +0800
From: Zhenwen Xu <helight.xu@...il.com>
To: linux-kernel@...r.kernel.org
Cc: viro@...iv.linux.org.uk
Subject: [PATCH] remove duplicated include <linux/audit.h>
The <linux/audit.h> was included in kernel/audit.h, and
kerenl/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.
Signed-off-by: Zhenwen Xu <helight.xu@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists