Skip to contentSkip to conversation

fsnotify: remove some duplicated includes

PATCH In review Yangtao Li 2 participants 2 messages Nov 26, 2018 Audit

lore
Share & tools
lore

Yangtao Li

author
#0 lore raw

PATCH 1/1 fsnotify: remove some duplicated includes

audit.h and fs.h are included twice.It's unnecessary. hence just remove them.

---
 kernel/audit_fsnotify.c | 2 --
 1 file changed, 2 deletions(-)
kernel/audit_fsnotify.c +0 -2
index fba78047fb37..5b54386a9edf 100644
@@ -16,10 +16,8 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/audit.h>
 #include <linux/kthread.h>
 #include <linux/mutex.h>
-#include <linux/fs.h>
 #include <linux/fsnotify_backend.h>
 #include <linux/namei.h>
 #include <linux/netlink.h>
Signature · 1 line
2.17.0
maintainer
#1 lore raw
Quoted 7 lines · Yangtao Li

audit.h and fs.h are included twice.It's unnecessary. hence just remove them.

---
 kernel/audit_fsnotify.c | 2 --
 1 file changed, 2 deletions(-)

I currently prefer to keep things as-is, see my response to your previous patch.

Quoted 18 lines
kernel/audit_fsnotify.c +0 -3
index fba78047fb37..5b54386a9edf 100644
@@ -16,10 +16,8 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/audit.h>
 #include <linux/kthread.h>
 #include <linux/mutex.h>
-#include <linux/fs.h>
 #include <linux/fsnotify_backend.h>
 #include <linux/namei.h>
 #include <linux/netlink.h>
--

2.17.0

Signature · 2 lines
paul moore
www.paul-moore.com